|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contract for an edit element. Each server property is represented by an appropriate edit element. This interface defines the contract which has to be obeyed by these edit elements.
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Add a listener for property changed of the edit element. |
void |
addTransferActionListener(java.awt.event.ActionListener al)
Add a listener to the "transfer" button. |
void |
finalizeChange()
Called if a change in the edit element has been transferred to the server and by this way has been made permanent. |
java.lang.String |
getPropertyName()
Return the name/key of the property. |
java.lang.Object |
getValue()
Return the current value of the property in the edit element. |
boolean |
isChanged()
Return whether the property has been changed in the edit element. |
void |
realize(javax.swing.JPanel p,
java.lang.String propname,
boolean darkelementx,
java.lang.String title,
java.lang.String explanation)
Finish the edit element's setup and show it in the embedding panel. |
void |
setValue(java.lang.Object data)
Set the propertie's value. |
Method Detail |
public void realize(javax.swing.JPanel p, java.lang.String propname, boolean darkelementx, java.lang.String title, java.lang.String explanation)
p
- Panel to put the components of the edit element in.propname
- Internal name/key of the component to show.darkelementx
- Flag whether this is a property for which the server does not disclose the current setting.title
- Human-readable name/title of the property. May be empty or null.explanation
- Human-readable explanation of the property. May be empty or null.public void setValue(java.lang.Object data)
data
- Current value of the property in the server.public java.lang.String getPropertyName()
public java.lang.Object getValue()
public boolean isChanged()
public void finalizeChange()
public void addTransferActionListener(java.awt.event.ActionListener al)
al
- Listener for the "transfer" button.public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- Listener for property change events
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |