public class EcogridPreferencesTab extends javax.swing.JPanel implements PreferencesTab
| Modifier and Type | Class and Description |
|---|---|
static class |
EcogridPreferencesTab.Factory
A factory that creates the ServicesListModification panel for the
PreferencesFrame.
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.awt.Dimension |
BUTTONDIMENSION
Description of the Field
|
protected EcoGridServicesController |
controller
Description of the Field
|
static int |
GAP
Description of the Field
|
static int |
HEIGHT
Description of the Field
|
protected static org.apache.commons.logging.Log |
log |
static int |
MARGINGSIZE
Description of the Field
|
protected TableauFrame |
parentFrame |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
EcogridPreferencesTab()
Constructor of the frame
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JPanel |
getButtonPanel()
Method to get button panel
|
java.lang.String |
getDisplayText()
Method to get display text
|
EcoGridServicesController |
getEcoGridServicesController()
Method to get controller
|
javax.swing.JPanel |
getMainPanel()
Method to get the main panel.
|
java.util.Vector |
getOriginalServiceList()
Method to get original service list(this list is for cancel button)
|
ServicesDisplayPanel |
getServicesDisplayPanel()
Method to get service display panel
|
java.lang.String |
getTabName()
This method should return the name of the tab which is used to label the
tab in the PreferencesFrame.
|
void |
initializeTab()
Initialization of the tab should be done at some point after the
constructor is called.
|
boolean |
isKeepExisting() |
void |
onCancel()
This method is called if the user presses the cancel button on the preferences frame.
|
void |
onClose()
This method is called as the preferences frame is closed legitimately
meaning that all changes to the preferences should be saved.
|
void |
setButtonPanel(javax.swing.JPanel buttonPanel)
Method to reset buttion panel
|
void |
setDisplayText(java.lang.String displayText)
Method to set the display string
|
void |
setEcoGridServicesController(EcoGridServicesController controller)
Method to set controller
|
void |
setOriginalServiceList(java.util.Vector originalServiceList)
Set original service list
|
void |
setParent(TableauFrame frame)
PreferencesTab usually will need access to the configuration of the
Tableau that is opened in the BasicGraphFrame.
|
void |
setServiceDisplayPanel(ServicesDisplayPanel servicesDisplayPanel)
Method to set up a new service dipaly panel panel
|
void |
setTabName(java.lang.String tabName) |
void |
updateButtonPanel()
This method will re-add buttons to frame
|
void |
updateController()
Method to update service in controller base on the user selection in the
panel
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, hide, 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, updateadd, 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, validateTreeaction, 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, 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, transferFocusUpCycleprotected EcoGridServicesController controller
protected TableauFrame parentFrame
public static final int MARGINGSIZE
public static final int GAP
public static final int HEIGHT
public static final java.awt.Dimension BUTTONDIMENSION
protected static final org.apache.commons.logging.Log log
public EcogridPreferencesTab() throws java.awt.HeadlessException
frameTitle - Description of the ParameterselectedServiceList - Description of the Parametercontroller - Description of the Parameterlocation - Description of the Parameterjava.awt.HeadlessException - Description of the Exceptionjava.awt.HeadlessExceptionpublic java.lang.String getTabName()
PreferencesTabgetTabName in interface PreferencesTabpublic void setTabName(java.lang.String tabName)
public void initializeTab() throws java.lang.Exception
PreferencesTabinitializeTab in interface PreferencesTabjava.lang.Exceptionpublic void setParent(TableauFrame frame)
PreferencesTabsetParent in interface PreferencesTabpublic void updateButtonPanel()
public boolean isKeepExisting()
public javax.swing.JPanel getMainPanel()
public ServicesDisplayPanel getServicesDisplayPanel()
public void setServiceDisplayPanel(ServicesDisplayPanel servicesDisplayPanel)
servicesDisplayPanel - ServicesDisplayPanelpublic javax.swing.JPanel getButtonPanel()
public void setButtonPanel(javax.swing.JPanel buttonPanel)
buttonPanel - JPanelpublic java.lang.String getDisplayText()
public void setDisplayText(java.lang.String displayText)
displayText - Stringpublic EcoGridServicesController getEcoGridServicesController()
public void setEcoGridServicesController(EcoGridServicesController controller)
controller - EcoGridServicesControllerpublic java.util.Vector getOriginalServiceList()
public void setOriginalServiceList(java.util.Vector originalServiceList)
originalServiceList - Vectorpublic void updateController()
public void onClose()
PreferencesTabonClose in interface PreferencesTabpublic void onCancel()
PreferencesTabonCancel in interface PreferencesTab