|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.installer.PropertyItem
public class PropertyItem
Defines generic information about one particular server property setting (all except its value - see
PropertyItemWithValue for that).
If a property change requires the application server to restart in order for the change to take effect,
isRequiresRestart() will be true.
If a property's value is to be considered a secret (like a password), then isSecret() will be
true.
If a property is considered an advanced setting, one that many users, especially beginners, should not be
concerned about most times, then isAdvanced() will be true.
Each property has a name that corresponds to the actual property name as found in the properties file. There is a
resource bundle key associated with each property that corresponds to
the property's human readable label. The localized label is usually what you want to display to the user, since the
property names themselves may be cryptic to most users.
| Constructor Summary | |
|---|---|
PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced)
|
|
PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced,
boolean hidden)
|
|
PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced,
List<javax.faces.model.SelectItem> options)
Use this constructor to define a property that is rendered with a drop down box of options to choose from. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getFieldSize()
|
String |
getHelp()
|
String |
getHelpResourceBundleKey()
|
List<javax.faces.model.SelectItem> |
getOptions()
|
String |
getPropertyLabel()
|
String |
getPropertyLabelResourceBundleKey()
|
String |
getPropertyName()
|
Class<?> |
getPropertyType()
|
int |
hashCode()
|
boolean |
isAdvanced()
|
boolean |
isHidden()
|
boolean |
isRequiresRestart()
|
boolean |
isSecret()
|
void |
setAdvanced(boolean hidden)
|
void |
setFieldSize(int fieldSize)
|
void |
setHelpResourceBundleKey(String helpResourceBundleKey)
|
void |
setHidden(boolean hidden)
|
void |
setOptions(List<javax.faces.model.SelectItem> options)
|
void |
setPropertyLabelResourceBundleKey(String propertyLabelResourceBundleKey)
|
void |
setPropertyName(String propertyName)
|
void |
setPropertyType(Class<?> propertyType)
|
void |
setRequiresRestart(boolean requiresRestart)
|
void |
setSecret(boolean secret)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced,
boolean hidden)
public PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced)
public PropertyItem(String name,
Class<?> type,
String labelBundleKey,
String helpBundleKey,
boolean requiresRestart,
boolean secret,
boolean advanced,
List<javax.faces.model.SelectItem> options)
| Method Detail |
|---|
public String getPropertyName()
public void setPropertyName(String propertyName)
public Class<?> getPropertyType()
public void setPropertyType(Class<?> propertyType)
public int getFieldSize()
public void setFieldSize(int fieldSize)
public boolean isRequiresRestart()
public void setRequiresRestart(boolean requiresRestart)
public boolean isSecret()
public void setSecret(boolean secret)
public boolean isAdvanced()
public List<javax.faces.model.SelectItem> getOptions()
public void setOptions(List<javax.faces.model.SelectItem> options)
public void setAdvanced(boolean hidden)
public boolean isHidden()
public void setHidden(boolean hidden)
public String getPropertyLabelResourceBundleKey()
public void setPropertyLabelResourceBundleKey(String propertyLabelResourceBundleKey)
public String getHelpResourceBundleKey()
public void setHelpResourceBundleKey(String helpResourceBundleKey)
public String getPropertyLabel()
public String getHelp()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||