Ontimize Document Management 0.032EN

com.ontimize.dms.client.gui.property.editor
Class FieldButtonEditor

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.ontimize.dms.client.gui.property.editor.FieldButtonEditor
All Implemented Interfaces:
PropertyListEditor, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
MultiEditor

public abstract class FieldButtonEditor
extends javax.swing.JPanel
implements PropertyListEditor

Field with button abstract editor.

Since:
03/12/2009 First release.
See Also:
Serialized Form

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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JButton button
           
protected  java.lang.Class clazz
           
protected  java.awt.Color defaultColor
           
protected  FieldButtonDialog dialog
           
protected  javax.swing.JTextField field
           
protected  javax.swing.text.Document fieldDoc
           
protected  java.awt.Color requiredColor
           
 
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
FieldButtonEditor()
           
 
Method Summary
protected  javax.swing.JComponent createComponent()
           
protected  FieldButtonDialog createDialog()
           
 javax.swing.text.Document getDocument()
           
 javax.swing.text.Document getDocument(java.lang.Class c)
           
 EditorFactory getFactory()
           
 javax.swing.JComponent getJComponent()
           
 java.awt.Color getRequiredColor()
           
 java.lang.Object getValue()
           
 java.lang.Class getValueClass()
           
 boolean isEditable()
           
 void setEditable(boolean editable)
           
 void setEnabled(boolean enabled)
           
 void setFactory(EditorFactory factory)
           
 void setPropertyListComponent(PropertyListComponent plc)
           
 void setRequiredColor(java.awt.Color color)
           
 void setToolTipText(java.lang.String text)
           
 void setValue(java.lang.Object value)
           
 void setValueClass(java.lang.Class c)
           
 
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, 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, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ontimize.dms.client.gui.property.editor.PropertyListEditor
addFocusListener, getParent, getToolTipText, isEnabled, isVisible, removeFocusListener, setVisible
 

Field Detail

field

protected javax.swing.JTextField field

fieldDoc

protected javax.swing.text.Document fieldDoc

button

protected javax.swing.JButton button

dialog

protected FieldButtonDialog dialog

clazz

protected java.lang.Class clazz

requiredColor

protected java.awt.Color requiredColor

defaultColor

protected java.awt.Color defaultColor
Constructor Detail

FieldButtonEditor

public FieldButtonEditor()
Method Detail

getDocument

public javax.swing.text.Document getDocument()
Specified by:
getDocument in interface PropertyListEditor

getDocument

public javax.swing.text.Document getDocument(java.lang.Class c)
Specified by:
getDocument in interface PropertyListEditor

getFactory

public EditorFactory getFactory()
Specified by:
getFactory in interface PropertyListEditor

getJComponent

public javax.swing.JComponent getJComponent()
Specified by:
getJComponent in interface PropertyListEditor

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface PropertyListEditor

getValueClass

public java.lang.Class getValueClass()
Specified by:
getValueClass in interface PropertyListEditor

isEditable

public boolean isEditable()
Specified by:
isEditable in interface PropertyListEditor

getRequiredColor

public java.awt.Color getRequiredColor()
Specified by:
getRequiredColor in interface PropertyListEditor

setRequiredColor

public void setRequiredColor(java.awt.Color color)
Specified by:
setRequiredColor in interface PropertyListEditor

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface PropertyListEditor

setPropertyListComponent

public void setPropertyListComponent(PropertyListComponent plc)
Specified by:
setPropertyListComponent in interface PropertyListEditor

setFactory

public void setFactory(EditorFactory factory)
Specified by:
setFactory in interface PropertyListEditor

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface PropertyListEditor

setValueClass

public void setValueClass(java.lang.Class c)
Specified by:
setValueClass in interface PropertyListEditor

setToolTipText

public void setToolTipText(java.lang.String text)
Specified by:
setToolTipText in interface PropertyListEditor
Overrides:
setToolTipText in class javax.swing.JComponent

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface PropertyListEditor
Overrides:
setEnabled in class javax.swing.JComponent

createComponent

protected javax.swing.JComponent createComponent()

createDialog

protected FieldButtonDialog createDialog()

Ontimize Document Management