com.inline.feature.ui
Class FeatureEditor
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.inline.feature.ui.FeatureEditor
- Direct Known Subclasses:
- JavaFieldEditor
- public class FeatureEditor
- extends javax.swing.JPanel
- implements java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.KeyListener, javax.swing.event.HyperlinkListener
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
protected com.sun.java.util.collections.HashMap |
browseButtonHash
|
protected com.sun.java.util.collections.HashMap |
guiHash
|
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 |
Method Summary |
javax.swing.JComboBox |
_addComboBox(java.lang.String name,
java.lang.Object[] values)
|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.JButton |
addButton(java.lang.String name,
java.lang.String title)
|
javax.swing.JCheckBox |
addCheckBox(java.lang.String name,
java.lang.String label)
|
javax.swing.JCheckBox[] |
addCheckBoxes(java.lang.String[] names,
java.lang.String[] label)
|
javax.swing.JComboBox |
addComboBox(java.lang.String name)
|
javax.swing.JComboBox |
addComboBox(java.lang.String name,
java.lang.String label)
|
javax.swing.JComboBox |
addComboBox(java.lang.String name,
java.lang.String[] values)
|
javax.swing.JComboBox |
addComboBox(java.lang.String name,
java.lang.String label,
com.inline.common.Enum enum)
|
javax.swing.JComboBox |
addComboBox(java.lang.String name,
java.lang.String label,
java.lang.String[] values)
|
com.inline.ui.swing.HyperlinkTextField |
addHyperlink(java.lang.String name,
java.lang.String label)
|
void |
addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
|
javax.swing.JLabel |
addLabel(java.lang.String name,
java.lang.String title)
|
void |
addNotify()
|
javax.swing.JComboBox |
addPullDownList(java.lang.String name,
com.inline.common.Enum enum)
|
javax.swing.JComboBox |
addPullDownList(java.lang.String name,
java.lang.String[] values)
|
javax.swing.JComboBox |
addPullDownList(java.lang.String name,
java.lang.String label,
com.inline.common.Enum enum)
|
javax.swing.JComboBox |
addPullDownList(java.lang.String name,
java.lang.String label,
java.lang.String[] values)
|
com.inline.ui.masterdetail.RadioPanel |
addRadioButtons(java.lang.String name,
java.lang.String panelTitle,
int rows,
int cols,
java.lang.String[] buttonLabels,
java.lang.String[] buttonValues)
|
void |
addSpace()
|
javax.swing.JTable |
addTable(java.lang.String labelTitle,
java.lang.Object[][] rowData,
java.lang.Object[] columnNames,
boolean showButtons,
com.sun.java.util.collections.HashMap comboHash)
|
javax.swing.JTextArea |
addTextArea(java.lang.String name)
|
javax.swing.JTextArea |
addTextArea(java.lang.String name,
java.lang.String label)
|
javax.swing.JTextField |
addTextBrowseField(java.lang.String name,
java.lang.String label,
java.lang.String buttonName)
|
javax.swing.JTextField |
addTextField(java.lang.String name)
|
javax.swing.JTextField |
addTextField(java.lang.String name,
java.lang.String label)
|
protected void |
configureConstraints(java.awt.GridBagConstraints c)
|
protected void |
displayValue(java.lang.String property)
|
protected void |
displayValues()
|
protected void |
featurePropertyChanged(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
|
void |
fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
|
protected void |
fireUIChanged(java.lang.String key)
Send a notification to the controller |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
boolean |
getBoolean(java.lang.String name)
|
java.awt.Component |
getComponentByName(java.lang.String name)
|
com.inline.common.Constant |
getConstant(java.lang.String name)
|
int |
getCurrentGridY()
|
protected java.lang.Object |
getFeatureProperty(java.lang.String property)
|
protected com.sun.java.util.collections.HashMap |
getGUIHash()
|
protected java.lang.reflect.Method |
getReadMethod(java.lang.String property)
|
java.lang.String |
getString(java.lang.String name)
|
protected java.lang.Object |
getValue(java.lang.String key)
|
protected java.lang.reflect.Method |
getWriteMethod(java.lang.String property)
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
|
boolean |
isAutocommitEnabled()
|
protected boolean |
isEditable(java.lang.String property)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
protected void |
processErrors(java.lang.String property,
com.sun.java.util.collections.List errors)
|
void |
registerListeners()
|
protected void |
registerProperty(java.lang.String property)
|
void |
removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
|
void |
removeNotify()
|
void |
setAutocommitEnabled(boolean flag)
|
void |
setBoolean(java.lang.String name,
boolean value)
|
void |
setConstant(java.lang.String name,
com.inline.common.Constant value)
|
void |
setEditable(java.awt.Component aComponent,
boolean flag)
|
void |
setEditable(java.lang.String name,
boolean enabled)
|
void |
setFeature(Feature feature)
|
protected void |
setFeatureProperty(java.lang.String property,
java.lang.Object value)
|
void |
setHyperlink(java.lang.String name,
java.lang.String value,
java.lang.String url)
|
protected void |
setModelClass(java.lang.Class clazz)
|
void |
setOptions(java.lang.String key,
java.lang.String[] options)
The key should correspond to a combo box. |
void |
setString(java.lang.String name,
java.lang.String value)
|
protected void |
storeValue(java.lang.String property)
|
void |
unregisterListeners()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
guiHash
protected com.sun.java.util.collections.HashMap guiHash
browseButtonHash
protected com.sun.java.util.collections.HashMap browseButtonHash
FeatureEditor
public FeatureEditor()
setAutocommitEnabled
public void setAutocommitEnabled(boolean flag)
isAutocommitEnabled
public boolean isAutocommitEnabled()
registerProperty
protected void registerProperty(java.lang.String property)
setString
public void setString(java.lang.String name,
java.lang.String value)
getString
public java.lang.String getString(java.lang.String name)
setBoolean
public void setBoolean(java.lang.String name,
boolean value)
getBoolean
public boolean getBoolean(java.lang.String name)
setConstant
public void setConstant(java.lang.String name,
com.inline.common.Constant value)
getConstant
public com.inline.common.Constant getConstant(java.lang.String name)
setHyperlink
public void setHyperlink(java.lang.String name,
java.lang.String value,
java.lang.String url)
setEditable
public void setEditable(java.lang.String name,
boolean enabled)
setFeature
public void setFeature(Feature feature)
displayValues
protected void displayValues()
displayValue
protected void displayValue(java.lang.String property)
getFeatureProperty
protected java.lang.Object getFeatureProperty(java.lang.String property)
storeValue
protected void storeValue(java.lang.String property)
processErrors
protected void processErrors(java.lang.String property,
com.sun.java.util.collections.List errors)
isEditable
protected boolean isEditable(java.lang.String property)
setFeatureProperty
protected void setFeatureProperty(java.lang.String property,
java.lang.Object value)
getReadMethod
protected java.lang.reflect.Method getReadMethod(java.lang.String property)
getWriteMethod
protected java.lang.reflect.Method getWriteMethod(java.lang.String property)
setModelClass
protected void setModelClass(java.lang.Class clazz)
featurePropertyChanged
protected void featurePropertyChanged(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
addNotify
public void addNotify()
- Overrides:
- addNotify in class javax.swing.JComponent
removeNotify
public void removeNotify()
- Overrides:
- removeNotify in class javax.swing.JComponent
getComponentByName
public java.awt.Component getComponentByName(java.lang.String name)
getGUIHash
protected com.sun.java.util.collections.HashMap getGUIHash()
registerListeners
public void registerListeners()
unregisterListeners
public void unregisterListeners()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
- actionPerformed in interface java.awt.event.ActionListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
- focusLost in interface java.awt.event.FocusListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
- focusGained in interface java.awt.event.FocusListener
getValue
protected java.lang.Object getValue(java.lang.String key)
setOptions
public void setOptions(java.lang.String key,
java.lang.String[] options)
- The key should correspond to a combo box. The method populates
the list on the combo box.
setEditable
public void setEditable(java.awt.Component aComponent,
boolean flag)
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
- keyPressed in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
- keyReleased in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
- keyTyped in interface java.awt.event.KeyListener
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
- Specified by:
- hyperlinkUpdate in interface javax.swing.event.HyperlinkListener
fireUIChanged
protected void fireUIChanged(java.lang.String key)
- Send a notification to the controller
addHyperlinkListener
public void addHyperlinkListener(javax.swing.event.HyperlinkListener listener)
removeHyperlinkListener
public void removeHyperlinkListener(javax.swing.event.HyperlinkListener listener)
fireHyperlinkUpdate
public void fireHyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
getCurrentGridY
public int getCurrentGridY()
configureConstraints
protected void configureConstraints(java.awt.GridBagConstraints c)
addSpace
public void addSpace()
addButton
public javax.swing.JButton addButton(java.lang.String name,
java.lang.String title)
addLabel
public javax.swing.JLabel addLabel(java.lang.String name,
java.lang.String title)
addTextField
public javax.swing.JTextField addTextField(java.lang.String name)
addTextField
public javax.swing.JTextField addTextField(java.lang.String name,
java.lang.String label)
addTextArea
public javax.swing.JTextArea addTextArea(java.lang.String name,
java.lang.String label)
addTextArea
public javax.swing.JTextArea addTextArea(java.lang.String name)
addComboBox
public javax.swing.JComboBox addComboBox(java.lang.String name)
addComboBox
public javax.swing.JComboBox addComboBox(java.lang.String name,
java.lang.String[] values)
addComboBox
public javax.swing.JComboBox addComboBox(java.lang.String name,
java.lang.String label)
addComboBox
public javax.swing.JComboBox addComboBox(java.lang.String name,
java.lang.String label,
java.lang.String[] values)
addComboBox
public javax.swing.JComboBox addComboBox(java.lang.String name,
java.lang.String label,
com.inline.common.Enum enum)
_addComboBox
public javax.swing.JComboBox _addComboBox(java.lang.String name,
java.lang.Object[] values)
addPullDownList
public javax.swing.JComboBox addPullDownList(java.lang.String name,
java.lang.String[] values)
addRadioButtons
public com.inline.ui.masterdetail.RadioPanel addRadioButtons(java.lang.String name,
java.lang.String panelTitle,
int rows,
int cols,
java.lang.String[] buttonLabels,
java.lang.String[] buttonValues)
addCheckBoxes
public javax.swing.JCheckBox[] addCheckBoxes(java.lang.String[] names,
java.lang.String[] label)
addPullDownList
public javax.swing.JComboBox addPullDownList(java.lang.String name,
java.lang.String label,
java.lang.String[] values)
addPullDownList
public javax.swing.JComboBox addPullDownList(java.lang.String name,
com.inline.common.Enum enum)
addPullDownList
public javax.swing.JComboBox addPullDownList(java.lang.String name,
java.lang.String label,
com.inline.common.Enum enum)
addCheckBox
public javax.swing.JCheckBox addCheckBox(java.lang.String name,
java.lang.String label)
addHyperlink
public com.inline.ui.swing.HyperlinkTextField addHyperlink(java.lang.String name,
java.lang.String label)
addTextBrowseField
public javax.swing.JTextField addTextBrowseField(java.lang.String name,
java.lang.String label,
java.lang.String buttonName)
addTable
public javax.swing.JTable addTable(java.lang.String labelTitle,
java.lang.Object[][] rowData,
java.lang.Object[] columnNames,
boolean showButtons,
com.sun.java.util.collections.HashMap comboHash)