|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
net.sourceforge.nite.nstyle.handler.JComponentHandler
public abstract class JComponentHandler
Constructor Summary | |
---|---|
JComponentHandler()
|
Method Summary | |
---|---|
void |
addActionReference(NActionReferenceHandler ref)
adds a reference to an action for this component, so that the action is fired when the appropriate key press / mouse click occurs |
void |
addChild(NDisplayObjectHandler child)
In an implementation-specific manner, add the supplied child NDisplayObjectHandler to this one. |
javax.swing.ImageIcon |
getImage()
Returns the image. |
javax.swing.JComponent |
getJComponent()
|
void |
registerAction(java.lang.String binding,
NiteAction a)
This is used to register an action listener for the action; well, in fact it's overridden by every class that extends this, so it's not really! |
void |
setImage(javax.swing.ImageIcon image)
Sets the image. |
java.awt.Color |
setUpBackgroundColour()
Use the background colour information specified in the properties componentToData to set the colours on the JComponent |
java.awt.Font |
setUpFont()
Use the font information specified in the properties componentToData to set the font on the JComponent |
java.awt.Color |
setUpForegroundColour()
Use the foreground colour information specified in the properties componentToData to set the colours on the JComponent |
void |
setUpImage()
Use the imagepath specified in the properties componentToData to set up the image for the JComponent |
void |
setUpToolTip()
Use the string specified in the properties componentToData to set up tooltip text |
Methods inherited from class net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler |
---|
addActionReference, getActionReferences, getChildren, getClock, getElement, getEndTime, getID, getParent, getSourceID, getStartTime, init, setChildren, setClock, setElement, setEndTime, setID, setParent, setSourceID, setStartTime, setUpTimes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JComponentHandler()
Method Detail |
---|
public void registerAction(java.lang.String binding, NiteAction a)
public void addChild(NDisplayObjectHandler child)
NDisplayObjectHandler
NDisplayObjectHandler
to this one.
addChild
in class NDisplayObjectHandler
child
- The child to add.net.sourceforge.net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler#addChild(net.sourceforge.net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler)
public void addActionReference(NActionReferenceHandler ref)
public javax.swing.JComponent getJComponent()
public java.awt.Font setUpFont()
public java.awt.Color setUpForegroundColour()
public java.awt.Color setUpBackgroundColour()
public void setUpImage()
public void setUpToolTip()
public javax.swing.ImageIcon getImage()
public void setImage(javax.swing.ImageIcon image)
image
- The image to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |