|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.swing.SwingGridBeanPanel
public class SwingGridBeanPanel
The base class for panels in Swing GridBean plygins
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 |
---|
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 | |
---|---|
SwingGridBeanPanel(Client client,
java.lang.String name)
Deprecated. |
|
SwingGridBeanPanel(Client client,
java.lang.String name,
INode node)
|
Method Summary | |
---|---|
void |
addChild(IConfigurable child)
Deprecated. |
java.lang.String |
getCaption()
Get the caption of the tab |
java.awt.Component |
getComponent()
Get the component to plug into the tabbed pane. |
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()
Deprecated. |
INode |
getNode()
Deprecated. |
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<javax.xml.namespace.QName> |
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 |
linkComboBox(javax.xml.namespace.QName key,
javax.swing.JComboBox comboBox)
Helper method to bind a combo box |
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 |
linkTextEditor(javax.xml.namespace.QName key,
TextEditor editor)
Deprecated. Use linkTextEditor(QName, com.intel.gui.controls2.configurable.TextEditor) instead |
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,
Client client)
Load data set component values from the GridBean model and the client object. |
void |
load(IPreferences preferences)
Load the settings |
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 |
store(IPreferences preferences)
Store the settings |
void |
updateValues(Client client)
|
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 |
Constructor Detail |
---|
@Deprecated public SwingGridBeanPanel(Client client, java.lang.String name)
public SwingGridBeanPanel(Client client, java.lang.String name, INode node)
Method Detail |
---|
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 listpublic void linkTextField(javax.xml.namespace.QName key, javax.swing.JTextField textField)
key
- The name of the controltextField
- The text fieldpublic 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) throws DataSetException
key
- The name of the controleditor
- The text editor
DataSetException
public void linkTextEditor(javax.xml.namespace.QName key, TextEditor editor)
linkTextEditor(QName, com.intel.gui.controls2.configurable.TextEditor)
instead
key
- The name of the controleditor
- The text editorpublic void linkCheckBox(javax.xml.namespace.QName key, javax.swing.JCheckBox checkBox)
key
- The name of the controlcheckBox
- The checkboxpublic 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
DataSetException
public void linkComboBox(javax.xml.namespace.QName key, javax.swing.JComboBox comboBox)
key
- The name of the controlcomboBox
- The combo box@Deprecated public java.lang.String getName()
IGridBeanPanel.getName()
getName
in interface IGridBeanPanel
getName
in class java.awt.Component
public java.lang.String getCaption()
IGridBeanPanel
getCaption
in interface IGridBeanPanel
public java.awt.Component getComponent()
ISwingGridBeanPanel
getComponent
in interface ISwingGridBeanPanel
public void load(IPreferences preferences)
IConfigurable
load
in interface IConfigurable
public void store(IPreferences preferences)
IConfigurable
store
in interface IConfigurable
@Deprecated public void addChild(IConfigurable child)
IConfigurable
addChild
in interface IConfigurable
@Deprecated public INode getNode()
IConfigurable
getNode
in interface IConfigurable
public void validate(ErrorSet errors)
IGridBeanPanel
validate
in interface IGridBeanPanel
errors
- The set of the encountered errorspublic boolean getEnabled(javax.xml.namespace.QName key) throws DataSetException
IDataSet
getEnabled
in interface IDataSet
key
- The name of the component
DataSetException
public void setEnabled(javax.xml.namespace.QName key, boolean enabled) throws DataSetException
IDataSet
setEnabled
in interface IDataSet
key
- The name of the componentenabled
- The enabled state of the component
DataSetException
public java.util.Set<javax.xml.namespace.QName> keySet()
IDataSet
keySet
in interface IDataSet
public java.lang.Object getValue(javax.xml.namespace.QName key) throws DataSetException, TranslationException
IDataSet
getValue
in interface IDataSet
key
- The name of the component
DataSetException
TranslationException
- If translation failedpublic void setValue(javax.xml.namespace.QName key, java.lang.Object value) throws DataSetException, TranslationException
IDataSet
setValue
in interface IDataSet
key
- The name of the componentvalue
- The value
DataSetException
TranslationException
- If translation failedpublic void setValueTranslator(javax.xml.namespace.QName key, IValueTranslator translator) throws DataSetException
IDataSet
setValueTranslator
in interface IDataSet
key
- The name of the componenttranslator
- The translator
DataSetException
public void setValueValidator(javax.xml.namespace.QName key, IValueValidator validator) throws DataSetException
IDataSet
setValueValidator
in interface IDataSet
key
- 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 IDataSet
key
- 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 IDataSet
key
- The name of the componentvalues
- The list of the possible values
DataSetException
TranslationException
public void load(IGridBeanModel model, Client client) throws DataSetException, TranslationException
IDataSet
load
in interface IDataSet
model
- The GridBean modelclient
- The client
DataSetException
TranslationException
- If translation of any value failedpublic void store(IGridBeanModel model) throws DataSetException, TranslationException
IDataSet
store
in interface IDataSet
model
- The GridBean model
DataSetException
TranslationException
- If translation of any value failedpublic boolean isValid(javax.xml.namespace.QName key, java.lang.StringBuffer buf) throws DataSetException
IDataSet
isValid
in interface IDataSet
key
- 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 IDataSet
key
- The name of the component
DataSetException
public void updateValues(Client client)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |