|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.intel.gpe.gridbeans.plugins.GridBeanPanel
public class GridBeanPanel
The base implementation of an input or output GridBean panel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected com.intel.gpe.client.application.Client |
parent
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GridBeanPanel(com.intel.gpe.client.application.Client parent,
java.lang.String name)
Create the GridBean panel. |
|
| Method Summary | |
|---|---|
java.awt.Component |
getComponent()
Get the component to plug into the tabbed pane. |
IDataControl |
getControl(javax.xml.namespace.QName key)
Get the control by its name |
java.lang.String |
getDescription(javax.xml.namespace.QName key)
Get the description of the component. |
boolean |
getEnabled(javax.xml.namespace.QName key)
Get the state of the component. |
java.lang.String |
getName()
Implements IGridBeanPanel.getName() |
java.lang.Object |
getValue(javax.xml.namespace.QName key)
Get the translated value of the component. |
boolean |
isValid(javax.xml.namespace.QName key,
java.lang.StringBuffer buf)
Check if the value of the component is valid. |
java.util.Set |
keySet()
Get the set of the component names. |
void |
linkButton(javax.xml.namespace.QName key,
javax.swing.JButton button)
Helper method to bind a button |
void |
linkCheckBox(javax.xml.namespace.QName key,
javax.swing.JCheckBox checkBox)
Helper method to bind a check box |
void |
linkDataControl(javax.xml.namespace.QName key,
IDataControl control)
Bind the specifed control to the specified name |
void |
linkJobNameTextField(javax.xml.namespace.QName key,
javax.swing.JTextField textField)
Helper method to bind a text field containing the job identifier (name) |
void |
linkLabel(javax.xml.namespace.QName key,
javax.swing.JLabel label)
Helper method to bind a label |
void |
linkList(javax.xml.namespace.QName key,
javax.swing.JList list)
Helper method to bind a list |
void |
linkTextEditor(javax.xml.namespace.QName key,
TextEditor editor)
Helper method to bind a text editor |
void |
linkTextField(javax.xml.namespace.QName key,
javax.swing.JTextField textField)
Helper method to bind a text field |
void |
linkTextFieldWithLabel(javax.xml.namespace.QName key,
javax.swing.JTextField textField,
javax.swing.JLabel label)
Helper method to bind a text field with a label |
void |
load(IGridBeanModel model,
com.intel.gpe.client.application.Client client)
Load data set component values from the GridBean model and the client object. |
void |
setDescription(javax.xml.namespace.QName key,
java.lang.String descr)
Set the description of the specified component |
void |
setEnabled(javax.xml.namespace.QName key,
boolean enabled)
Set the enabled state of the component |
void |
setPossibleValues(javax.xml.namespace.QName key,
java.util.List values)
Set the possible values for the specified component |
void |
setValue(javax.xml.namespace.QName key,
java.lang.Object value)
Set the value of the component. |
void |
setValueTranslator(javax.xml.namespace.QName key,
IValueTranslator translator)
Set the translator for the specified component |
void |
setValueValidator(javax.xml.namespace.QName key,
IValueValidator validator)
Set the validator for the specified component |
void |
store(IGridBeanModel model)
Store the component values in the GridBean model. |
void |
updateValues(com.intel.gpe.client.application.Client client)
This method is called whenever load(IGridBeanModel, Client) is called. |
void |
validate(ErrorSet errors)
Validate the contents of the panel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, 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 |
| Methods inherited from class java.awt.Container |
|---|
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, transferFocusBackward, transferFocusDownCycle, 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, 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, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected com.intel.gpe.client.application.Client parent
| Constructor Detail |
|---|
public GridBeanPanel(com.intel.gpe.client.application.Client parent,
java.lang.String name)
parent - The parent component (usually the main window)name - The name of the panel. It is displayed as the name of
the tab in the tabbed pane where the panel is inserted| Method Detail |
|---|
public IDataControl getControl(javax.xml.namespace.QName key)
throws DataSetException
key - The name of the control
DataSetException
public boolean getEnabled(javax.xml.namespace.QName key)
throws DataSetException
IDataSet
getEnabled in interface IDataSetkey - The name of the component
DataSetException
public void setEnabled(javax.xml.namespace.QName key,
boolean enabled)
throws DataSetException
IDataSet
setEnabled in interface IDataSetkey - The name of the componentenabled - The enabled state of the component
DataSetExceptionpublic java.util.Set keySet()
IDataSet
keySet in interface IDataSet
public java.lang.Object getValue(javax.xml.namespace.QName key)
throws DataSetException,
TranslationException
IDataSet
getValue in interface IDataSetkey - The name of the component
DataSetException
TranslationException - If translation failed
public void setValue(javax.xml.namespace.QName key,
java.lang.Object value)
throws DataSetException,
TranslationException
IDataSet
setValue in interface IDataSetkey - The name of the componentvalue - The value
DataSetException
TranslationException - If translation failed
public void setValueTranslator(javax.xml.namespace.QName key,
IValueTranslator translator)
throws DataSetException
IDataSet
setValueTranslator in interface IDataSetkey - The name of the componenttranslator - The translator
DataSetException
public void setValueValidator(javax.xml.namespace.QName key,
IValueValidator validator)
throws DataSetException
IDataSet
setValueValidator in interface IDataSetkey - The name of the componentvalidator - The validator
DataSetException
public void setDescription(javax.xml.namespace.QName key,
java.lang.String descr)
throws DataSetException
IDataSet
setDescription in interface IDataSetkey - The name of the componentdescr - The description
DataSetException
public void setPossibleValues(javax.xml.namespace.QName key,
java.util.List values)
throws DataSetException,
TranslationException
IDataSet
setPossibleValues in interface IDataSetkey - The name of the componentvalues - The list of the possible values
DataSetException
TranslationException
public void linkDataControl(javax.xml.namespace.QName key,
IDataControl control)
key - The namecontrol - The control
public void linkJobNameTextField(javax.xml.namespace.QName key,
javax.swing.JTextField textField)
throws DataSetException
key - The name of the control (usually "name")textField - The text field
DataSetException
public void linkList(javax.xml.namespace.QName key,
javax.swing.JList list)
key - The name of the controllist - The list
public void linkTextField(javax.xml.namespace.QName key,
javax.swing.JTextField textField)
key - The name of the controltextField - The text field
public void linkLabel(javax.xml.namespace.QName key,
javax.swing.JLabel label)
throws DataSetException
key - The name of the controllabel - The label
DataSetException
public void linkButton(javax.xml.namespace.QName key,
javax.swing.JButton button)
throws DataSetException
key - The name of the controlbutton - The button
DataSetException
public void linkTextEditor(javax.xml.namespace.QName key,
TextEditor editor)
key - The name of the controleditor - The text editor
public void linkCheckBox(javax.xml.namespace.QName key,
javax.swing.JCheckBox checkBox)
key - The name of the controlcheckBox - The checkbox
public void linkTextFieldWithLabel(javax.xml.namespace.QName key,
javax.swing.JTextField textField,
javax.swing.JLabel label)
throws DataSetException
key - The name of the control grouptextField - The text fieldlabel - The label
DataSetExceptionpublic java.lang.String getName()
IGridBeanPanel.getName()
getName in interface IGridBeanPanelgetName in class java.awt.Componentpublic java.awt.Component getComponent()
IGridBeanPanel
getComponent in interface IGridBeanPanel
public void load(IGridBeanModel model,
com.intel.gpe.client.application.Client client)
throws DataSetException,
TranslationException
IDataSet
load in interface IDataSetmodel - The GridBean modelclient - The client
DataSetException
TranslationException - If translation of any value failed
public void store(IGridBeanModel model)
throws DataSetException,
TranslationException
IDataSet
store in interface IDataSetmodel - The GridBean model
DataSetException
TranslationException - If translation of any value failedpublic void updateValues(com.intel.gpe.client.application.Client client)
load(IGridBeanModel, Client) is called. Override it if you
want to update the values of the panel depending on the state of the client object.
client - The clientpublic void validate(ErrorSet errors)
IGridBeanPanel
validate in interface IGridBeanPanelerrors - The set of the encountered errors
public boolean isValid(javax.xml.namespace.QName key,
java.lang.StringBuffer buf)
throws DataSetException
IDataSet
isValid in interface IDataSetkey - The name of the componentbuf - The reason of the failure of validation check is appended here
true if the value of the specified component is valid
DataSetException
public java.lang.String getDescription(javax.xml.namespace.QName key)
throws DataSetException
IDataSet
getDescription in interface IDataSetkey - The name of the component
DataSetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||