|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: OpenSwing Framework
Description: Interface defined for each input control, used to specify attribute name and required properties.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Method Summary | |
void |
addFocusListener(java.awt.event.FocusListener listener)
Add a FocusListener to this input control. |
void |
addValueChangedListener(ValueChangeListener listener)
Add a value changed listener to this input control. |
java.lang.String |
getAttributeName()
Link the input control to the form which contains it and with the specified the attribute. |
LabelControl |
getLinkLabel()
|
java.lang.Object |
getValue()
|
ValueChangeListener[] |
getValueChangeListeners()
|
boolean |
isCanCopy()
|
boolean |
isChanged()
|
boolean |
isEnabled()
|
boolean |
isEnabledOnEdit()
|
boolean |
isEnabledOnInsert()
|
boolean |
isRequired()
|
void |
removeFocusListener(java.awt.event.FocusListener listener)
Remove a FocusListener listener from this input control. |
void |
removeValueChangedListener(ValueChangeListener listener)
Remove a value changed listener from this input control. |
void |
setAttributeName(java.lang.String attributeName)
Link the input control to the form which contains it and with the specified the attribute. |
void |
setCanCopy(boolean canCopy)
Define if the input control value is duplicated when user has clicked on COPY button. |
void |
setChanged(boolean changed)
Define if the input control value is changed. |
void |
setEnabled(boolean enabled)
Set current input control abilitation. |
void |
setEnabledOnEdit(boolean enabled)
Define if the input control is enabled on EDIT mode, false otherwise |
void |
setEnabledOnInsert(boolean enabled)
Define if the input control is enabled on INSERT mode. |
void |
setLinkLabel(LabelControl label)
Link the input control label to the specified label. |
void |
setValue(java.lang.Object value)
Set value to the input control. |
Method Detail |
public void setAttributeName(java.lang.String attributeName)
attributeName
- attribute name to which link the input controlpublic java.lang.String getAttributeName()
public void setLinkLabel(LabelControl label)
label
- label used when showing error messages related to the input controlpublic LabelControl getLinkLabel()
public boolean isRequired()
public boolean isEnabledOnInsert()
true
if the input control is enabled on INSERT mode, false
otherwisepublic void setEnabledOnInsert(boolean enabled)
enabled
- true
if the input control is enabled on INSERT mode, false
otherwisepublic boolean isEnabledOnEdit()
true
if the input control is enabled on EDIT mode, false
otherwisepublic void setEnabledOnEdit(boolean enabled)
false
otherwise
enabled
- mandatory property of the input controlpublic boolean isCanCopy()
public void setCanCopy(boolean canCopy)
canCopy
- define if the input control value is duplicated when user has clicked on COPY buttonpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- value to set into the input controlpublic boolean isChanged()
true
if the input control value is changed, false
otherwisepublic void setChanged(boolean changed)
changed
- true
if the input control value is changed, false
otherwisepublic void addValueChangedListener(ValueChangeListener listener)
listener
- value changed listener to addpublic void removeValueChangedListener(ValueChangeListener listener)
listener
- value changed listener to removepublic void setEnabled(boolean enabled)
public boolean isEnabled()
public ValueChangeListener[] getValueChangeListeners()
public void addFocusListener(java.awt.event.FocusListener listener)
listener
- FocusListener to addpublic void removeFocusListener(java.awt.event.FocusListener listener)
listener
- FocusListener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |