Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt.taskframe
Class TaskFrame  view TaskFrame download TaskFrame.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended bycom.flexstor.common.awt.FlexFrame
                      extended bycom.flexstor.common.awt.taskframe.TaskFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, com.flexstor.common.awt.WindowId

public class TaskFrame
extends com.flexstor.common.awt.FlexFrame


Nested Class Summary
 
Nested classes inherited from class com.flexstor.common.awt.FlexFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean bCanClose
           
private  boolean bShowHistory
           
private  java.awt.Label lblMsg
           
private  java.awt.List lHistory
           
 
Fields inherited from class com.flexstor.common.awt.FlexFrame
aboutHandler, fChildren, fOwner, helpHandler, pContent, pToolBar, statusBar
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.flexstor.common.awt.WindowId
SUBID_DUAL, SUBID_NONE, SUBID_RECORD, SUBID_SEARCH_ADVANCED, SUBID_SEARCH_BASIC, SUBID_SEARCH_FILEBASED, SUBID_SEARCH_FULL_TEXT, SUBID_SUMMARY, SUBID_THUMBNAIL, WNDID_ADDRESSBOOK, WNDID_ADMIN_MAIN, WNDID_APPLICATION_RIGHT, WNDID_ARCHIVE_DLG, WNDID_ASSET_ROLE, WNDID_CHANGE_PASSWORD, WNDID_CLASSIFICATION, WNDID_ELEMENT_DETAILS, WNDID_FILE_MODIFIER, WNDID_FILE_VIEWER, WNDID_FULL_SIZE, WNDID_IMPORT, WNDID_LOGIN, WNDID_MAIN, WNDID_PREFERENCE, WNDID_REGISTRY_DEBUGGER, WNDID_RESTORE_DLG, WNDID_RETRIEVAL, WNDID_RPT_DESIGNER, WNDID_SEARCH, WNDID_SEND_CHG_SET, WNDID_SEND_ELEM, WNDID_SERVER_MAINTENANCE, WNDID_SERVER_UPDATE, WNDID_SETTINGS, WNDID_TRANSACTION_LOGGING, WNDID_USER_GROUP, WNDID_WHERE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TaskFrame(java.lang.String sTitle)
           
TaskFrame(java.lang.String sTitle, boolean bShowHistory)
           
 
Method Summary
 boolean canClose()
          Returns a boolean indicating wether the frame can be closed.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size of this container.
 int getSubWindowID()
          Returns the sub ID for this frame.
 int getWindowID()
          Returns the ID for this frame.
 void saveSize()
          Saves the location and size of the frame as a user setting.
 void setCanClose(boolean bCanClose)
           
 void setMessage(java.lang.String sMsg)
           
 
Methods inherited from class com.flexstor.common.awt.FlexFrame
actionPerformed, addChild, addNotify, centerOn, close, getChildren, getContentPanel, getOwnerFrame, getToolBar, getWindowName, registerAboutHandler, registerHelpHandler, removeChild, setContentPanel, setMenuBar, setOwnerFrame, setSize, setStatusText, setToolBar, setWaitCursor, showStatusBar
 
Methods inherited from class java.awt.Frame
getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

bShowHistory

private boolean bShowHistory

lblMsg

private java.awt.Label lblMsg

lHistory

private java.awt.List lHistory

bCanClose

private boolean bCanClose
Constructor Detail

TaskFrame

public TaskFrame(java.lang.String sTitle)

TaskFrame

public TaskFrame(java.lang.String sTitle,
                 boolean bShowHistory)
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
Description copied from class: java.awt.Container
Returns the preferred size of this container.


setMessage

public void setMessage(java.lang.String sMsg)

saveSize

public void saveSize()
Description copied from class: com.flexstor.common.awt.FlexFrame
Saves the location and size of the frame as a user setting. saveSize() is called by close() and can also be called directly. PLEASE NOTE THAT THIS METHOD WILL REMOVE ANY CURRENT MENUBAR FOR ALL PLATFORMS, EXCEPT FOR MacOS, IN ORDER TO BE ABLE TO CALCULATE THE CORRECT FRAME SIZE.


setCanClose

public void setCanClose(boolean bCanClose)

canClose

public boolean canClose()
Description copied from class: com.flexstor.common.awt.FlexFrame
Returns a boolean indicating wether the frame can be closed. The default behavior is to return true. This method needs to be overwritten in subclasses which require a check before they can be closed.


getWindowID

public int getWindowID()
Description copied from class: com.flexstor.common.awt.FlexFrame
Returns the ID for this frame.


getSubWindowID

public int getSubWindowID()
Description copied from class: com.flexstor.common.awt.FlexFrame
Returns the sub ID for this frame.