|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler
net.sf.jguiraffe.gui.platform.swing.builder.components.SwingProgressBarHandler
class SwingProgressBarHandler
An internally used handler class that deals with components of type
JProgressBar.
The data type of this component handler is an integer representing the
current value of the progress bar. This class also implements the
ProgressBarHandler interface, which allows direct access to
important properties.
| Constructor Summary | |
|---|---|
SwingProgressBarHandler(javax.swing.JProgressBar bar)
Creates a new instance of SwingProgressBarHandler and
initializes it with the managed component. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Returns the data of the managed component. |
javax.swing.JProgressBar |
getProgressBar()
Returns the managed JProgressBar component. |
java.lang.String |
getProgressText()
Returns the text to be displayed on the progress bar. |
java.lang.Class |
getType()
Returns the data type of the managed component. |
int |
getValue()
Returns the current value of the progress bar. |
protected void |
registerChangeListener()
Registers this object as change listener at the managed component. |
void |
setData(java.lang.Object data)
Sets the data of the managed component. |
void |
setProgressText(java.lang.String s)
Sets the text to be displayed on the progress bar. |
void |
setValue(int v)
Sets the current value of the progress bar. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Notification method for change events. |
protected void |
unregisterChangeListener()
Unregisters this handler as change listener from the managed component. |
| Methods inherited from class net.sf.jguiraffe.gui.platform.swing.builder.components.SwingComponentHandler |
|---|
addActionListener, addChangeListener, addFocusListener, fireChangeEvent, getComponent, getJComponent, getOuterComponent, isEnabled, removeActionListener, removeChangeListener, removeFocusListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jguiraffe.gui.forms.ComponentHandler |
|---|
getComponent, getOuterComponent, isEnabled, setEnabled |
| Constructor Detail |
|---|
public SwingProgressBarHandler(javax.swing.JProgressBar bar)
SwingProgressBarHandler and
initializes it with the managed component.
bar - the progress bar to be wrapped| Method Detail |
|---|
public javax.swing.JProgressBar getProgressBar()
JProgressBar component.
public java.lang.String getProgressText()
getProgressText in interface ProgressBarHandlerpublic int getValue()
getValue in interface ProgressBarHandlerpublic void setProgressText(java.lang.String s)
allowText property was set when the
progress bar was created.
setProgressText in interface ProgressBarHandlers - the progress textpublic void setValue(int v)
setValue in interface ProgressBarHandlerv - the new valuepublic java.lang.Object getData()
getData in interface ComponentHandlerpublic java.lang.Class getType()
getType in interface ComponentHandlerpublic void setData(java.lang.Object data)
setData in interface ComponentHandlerdata - the new datapublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenere - the eventprotected void registerChangeListener()
registerChangeListener in class SwingComponentHandlerprotected void unregisterChangeListener()
unregisterChangeListener in class SwingComponentHandlerSwingComponentHandler.registerChangeListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||