public class TransferResultsTab
extends javax.swing.JPanel
implements com.lf.commons.docking.tabbed.TabbedWindowTab, com.lf.commons.gui.ActionDelegate, javax.swing.event.ChangeListener, com.lf.commons.model.ConfigurableUnit
SyncWindow
(all target results).
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected com.lf.commons.gui.SharedAction[] |
actions
Remembers the shared action components (optional).
|
protected boolean |
closeAllowed
May the tab be closed by the user?
|
protected java.lang.String |
helpID
Help system ID from the application (must be delegated).
|
protected javax.swing.Icon |
icon
The tab icon.
|
protected java.util.Vector<com.lf.commons.docking.tabbed.TabListener> |
listeners
Container holding the external tab listeners.
|
protected com.lf.commons.gui.StatusBarMessage |
message
The message for the status bar.
|
protected java.lang.String[] |
supportedActions
Array with supported shared actions.
|
protected com.lf.commons.docking.tabbed.TabbedWindow |
tabbedWindow
The parental tabbed window for this window.
|
protected java.lang.String[] |
targetsets
The target set names.
|
protected java.lang.String |
title
The tab title.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TransferResultsTab()
Constructor method.
|
TransferResultsTab(java.util.Hashtable<java.lang.String,java.util.Vector<TransferResult>> results,
java.lang.String[] targetsets,
java.lang.String title,
javax.swing.Icon icon,
com.lf.commons.gui.StatusBarMessage message)
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
void |
addTabListener(com.lf.commons.docking.tabbed.TabListener listener)
Adds a listener reacting on tab changes.
|
void |
configureUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Restores values from persistent data stores.
|
protected void |
finalize()
Clean-up method to help the gc.
|
com.lf.commons.gui.ActionDelegate |
getActionDelegate()
Provides the optional action delegate responsible for shared buttons and menu items.
|
java.awt.Component |
getComponent()
Provides the component to be displayed by the tabbed docking window.
|
javax.swing.Icon |
getIcon()
Provides the graphical icon of the tab used for display.
|
com.lf.commons.gui.StatusBarMessage |
getMessage()
Provides the status bar message for the tab from the creator.
|
java.lang.String[] |
getSupportedActions()
Provides the supported shared actions for this delegate.
|
com.lf.commons.docking.tabbed.TabbedWindow |
getTabbedWindow()
Provides the tabbed docking window specified when
tabAdded() was called. |
java.lang.String |
getTitle()
Provides the title of the tab used for display.
|
java.lang.String |
getToolTip()
Provides the tooltip of the tab used for display.
|
boolean |
isCloseAllowed()
Provides the info whether the tab may be closed by the user or not.
|
void |
processAction(com.lf.commons.gui.SharedAction action)
Indicates that the given action was initiated and must be processed.
|
void |
refresh()
Updates the contents of the tab.
|
void |
removeTabListener(com.lf.commons.docking.tabbed.TabListener listener)
Removes a listener reacting on tab changes.
|
void |
setHelpID(java.lang.String helpid)
Sets the identifier for the context sensitive help (must be delegated).
|
protected void |
setSelectedTab(java.util.Hashtable<java.lang.String,java.util.Vector<TransferResult>> transferlists)
Selects the first tab showing at least one transfer item.
|
void |
startControl(com.lf.commons.gui.SharedAction[] actions)
Provides the info that the given shared actions must now be controlled.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Called whenever the table selection changes.
|
void |
stopControl()
Provides the info that the control of the given shared actions must be stopped.
|
void |
storeUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Stores the current configuration values persistently.
|
void |
tabAdded(com.lf.commons.docking.tabbed.TabbedWindow parent,
java.lang.String id)
Informs the tab that it was added to the tabbed window.
|
void |
tabBecomesHidden()
Informs the tab that it will vanish from the screen.
|
void |
tabBecomesRemoved()
Informs the tab that it is up to be removed.
|
void |
tabBecomesShown()
Informs the tab that it becomes visible on the screen.
|
void |
tabIsHiding()
Informs the tab that it was made invisible by the manager.
|
void |
tabIsShowing()
Informs the tab that it was made visible by the manager.
|
void |
tabRemoved(com.lf.commons.docking.tabbed.TabbedWindow parent,
java.lang.String id)
Informs the tab that it was removed from the tabbed window.
|
void |
unitRegistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was registered with a model.
|
void |
unitUnregistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was unregistered with a model.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.lang.String title
protected javax.swing.Icon icon
protected com.lf.commons.gui.StatusBarMessage message
protected com.lf.commons.docking.tabbed.TabbedWindow tabbedWindow
protected boolean closeAllowed
protected java.lang.String[] targetsets
protected java.lang.String[] supportedActions
protected com.lf.commons.gui.SharedAction[] actions
protected java.util.Vector<com.lf.commons.docking.tabbed.TabListener> listeners
protected java.lang.String helpID
public TransferResultsTab()
public TransferResultsTab(java.util.Hashtable<java.lang.String,java.util.Vector<TransferResult>> results, java.lang.String[] targetsets, java.lang.String title, javax.swing.Icon icon, com.lf.commons.gui.StatusBarMessage message)
results
- The container with transfer resultstargetsets
- The target set namestitle
- The tab titleicon
- The tab iconmessage
- The message for the status barprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- Error indicationpublic java.lang.String getTitle()
getTitle
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public java.lang.String getToolTip()
getToolTip
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public javax.swing.Icon getIcon()
getIcon
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public java.awt.Component getComponent()
getComponent
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public com.lf.commons.gui.StatusBarMessage getMessage()
getMessage
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public boolean isCloseAllowed()
isCloseAllowed
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public void tabAdded(com.lf.commons.docking.tabbed.TabbedWindow parent, java.lang.String id)
tabAdded
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
parent
- The tabbed docking windowid
- The unique IDpublic void tabBecomesRemoved()
tabBecomesRemoved
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public void tabRemoved(com.lf.commons.docking.tabbed.TabbedWindow parent, java.lang.String id)
tabRemoved
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
parent
- The tabbed docking windowid
- The unique IDpublic void tabBecomesShown()
tabBecomesShown
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public void tabBecomesHidden()
tabBecomesHidden
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public void tabIsShowing()
tabIsShowing
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public void tabIsHiding()
tabIsHiding
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public com.lf.commons.docking.tabbed.TabbedWindow getTabbedWindow()
tabAdded()
was called.
getTabbedWindow
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
null
if not availablepublic void refresh()
refresh
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
public com.lf.commons.gui.ActionDelegate getActionDelegate()
getActionDelegate
in interface com.lf.commons.docking.tabbed.TabbedWindowTab
null
if not availablepublic java.lang.String[] getSupportedActions()
getSupportedActions
in interface com.lf.commons.gui.ActionDelegate
public void startControl(com.lf.commons.gui.SharedAction[] actions)
startControl
in interface com.lf.commons.gui.ActionDelegate
actions
- The actions to care forpublic void stopControl()
stopControl
in interface com.lf.commons.gui.ActionDelegate
public void processAction(com.lf.commons.gui.SharedAction action)
processAction
in interface com.lf.commons.gui.ActionDelegate
action
- The action to be processedpublic void configureUnit(java.lang.String id, com.lf.commons.config.Configuration config)
configureUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, com.lf.commons.config.Configuration config)
storeUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitRegistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitUnregistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void addTabListener(com.lf.commons.docking.tabbed.TabListener listener)
listener
- The listener instancejava.lang.NullPointerException
- If parameter is null
public void removeTabListener(com.lf.commons.docking.tabbed.TabListener listener)
listener
- The listener instancejava.lang.NullPointerException
- If parameter is null
public void setHelpID(java.lang.String helpid)
helpid
- The help system linkprotected void setSelectedTab(java.util.Hashtable<java.lang.String,java.util.Vector<TransferResult>> transferlists)
transferlists
- The transfer lists by target setpublic void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
event
- The event objectCopyright © 2005-2015 Leisenfels UG. All rights reserved.