@Deprecated public class TLcdPropertyColor extends Canvas implements MouseListener
Component
to edit a Color
property through its PropertyEditor.PropertyEditor
,
Serialized FormCanvas.AccessibleAWTCanvas
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdPropertyColor(Frame frame,
PropertyEditor pe)
Deprecated.
Constructs a
TLcdPropertyColor with a PropertyEditor which getValue method
returns an instance of the Color class. |
TLcdPropertyColor(PropertyEditor pe)
Deprecated.
Constructs a
TLcdPropertyColor with a PropertyEditor which getValue method
returns an instance of the Color class. |
Modifier and Type | Method and Description |
---|---|
static void |
addColor(Color aColor)
Deprecated.
|
void |
cancelCellEditing()
Deprecated.
|
Object |
getCellEditorValue()
Deprecated.
|
static Color[] |
getColors()
Deprecated.
|
Component |
getComponent()
Deprecated.
|
String |
getDialogTitle()
Deprecated.
|
PropertyEditor |
getPropertyEditor()
Deprecated.
Get the
PropertyEditor to be considered. |
boolean |
isCellEditable(EventObject aEvent)
Deprecated.
|
void |
mouseClicked(MouseEvent evt)
Deprecated.
Implements MouseListener.mouseClicked.
|
void |
mouseEntered(MouseEvent evt)
Deprecated.
Implements MouseListener.mouseEntered.
|
void |
mouseExited(MouseEvent evt)
Deprecated.
Implements MouseListener.mouseExited.
|
void |
mousePressed(MouseEvent evt)
Deprecated.
Implements MouseListener.mousePressed.
|
void |
mouseReleased(MouseEvent evt)
Deprecated.
This implementation opens a
Window with a
choice among default Colors. |
void |
paint(Graphics g)
Deprecated.
|
void |
removeNotify()
Deprecated.
Redefines removeNotify in order to unregister as PropertyChangeListener
from the set PropertyEditor.
|
static void |
setColors(Color[] aColorArray)
Deprecated.
|
void |
setDialogTitle(String aTitle)
Deprecated.
|
void |
setPropertyEditor(PropertyEditor aPropertyEditor)
Deprecated.
Sets the
PropertyEditor to be considered. |
boolean |
shouldSelectCell(EventObject aEvent)
Deprecated.
|
boolean |
stopCellEditing()
Deprecated.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public TLcdPropertyColor(Frame frame, PropertyEditor pe)
TLcdPropertyColor
with a PropertyEditor
which getValue method
returns an instance of the Color
class.
The given Frame
will be used as parent Frame
for the PropertyDialog
This TLcdPropertyCanvas
will register as PropertyChangeListener
to the given PropertyEditor, and repaint itself each a PropertyChangeEvent
has been fire.
public TLcdPropertyColor(PropertyEditor pe)
TLcdPropertyColor
with a PropertyEditor
which getValue method
returns an instance of the Color
class.
The parent Frame
for the PropertyDialog
will be
found using TLcdAWTUtil.findParentFrame
(Object) with the MouseEvent
received on the MouseReleased.
This TLcdPropertyCanvas
will register as PropertyChangeListener
to the given PropertyEditor, and repaint itself each a PropertyChangeEvent
has been fire.
public static void addColor(Color aColor)
public static void setColors(Color[] aColorArray)
public static Color[] getColors()
public void setDialogTitle(String aTitle)
public String getDialogTitle()
public PropertyEditor getPropertyEditor()
PropertyEditor
to be considered.
aPropertyEditor.getValue()
must return an instance of Color.public void setPropertyEditor(PropertyEditor aPropertyEditor)
PropertyEditor
to be considered.
aPropertyEditor.getValue()
must return an instance of Color.public void removeNotify()
removeNotify
in class Component
public void mouseReleased(MouseEvent evt)
Window
with a
choice among default Colors. This method can be redefined with other
behavior.mouseReleased
in interface MouseListener
public void mousePressed(MouseEvent evt)
Action
is performed here.mousePressed
in interface MouseListener
public void mouseClicked(MouseEvent evt)
Action
is performed here.mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent evt)
Action
is performed here.mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent evt)
Action
is performed here.mouseExited
in interface MouseListener
public Component getComponent()
public Object getCellEditorValue()
public boolean isCellEditable(EventObject aEvent)
public boolean shouldSelectCell(EventObject aEvent)
public boolean stopCellEditing()
public void cancelCellEditing()