|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Utility.InfoItem
Provides data from the server to the GUI builder, with a key for the data base so that it can be updated. For example, an InfoItem could represent the last name of a person, with the displayable label, the last name, and which group and subgoup it should be displayed in.

| Field Summary | |
static int |
ITEM_CHOICE
Indicates that the itemValues can only be chosen from the provided values |
static int |
ITEM_CHOICE_EDITABLE
Indicates that the itemValues can only be chosen from the provided values, and edited |
static int |
ITEM_EDITABLE
Indicates that the itemValues are fully editable |
static int |
ITEM_EDITABLE_PSWD
Indicates that the itemValues are passwords, editable but camouflaged |
static int |
ITEM_FIXED
Indicates that the itemValues can not be changed |
| Constructor Summary | |
InfoItem()
Construct an InfoItem with all default values |
|
InfoItem(java.lang.String inUse,
java.lang.String inName,
int inCtlType,
int inGroup,
int inSubGroup,
boolean inSingleValued,
boolean inDynamic,
java.lang.String inVisWith,
boolean inUpdater,
java.lang.String inUpdateWith,
java.lang.String[] inVal)
Constructs an InfoItem with all the incoming attributes |
|
| Method Summary | |
int |
getItemCtlType()
Get the itemCtlType |
java.lang.String |
getItemDisplayName()
Get the itemDisplayName |
boolean |
getItemDynamic()
Get the dynamic value |
int |
getItemGroup()
Get the group number |
boolean |
getItemSingleValued()
Get the single value |
int |
getItemSubGroup()
Get the sub group number |
boolean |
getItemUpdater()
Get the updater value |
java.lang.String |
getItemUpdateWith()
Get the itemUpdateWith |
java.lang.String |
getItemUse()
Get the itemUse |
java.lang.String[] |
getItemValues()
Get the itemValues |
java.lang.String |
getItemVisWith()
Get the itemVisWith |
java.lang.String[] |
getRetValues()
Get the retValues |
void |
setItemCtlType(int inCtlType)
set the itemCtlType |
void |
setItemDisplayName(java.lang.String inName)
set the itemDisplayName |
void |
setItemDynamic(boolean inDynamic)
set the dynamic value |
void |
setItemGroup(int inGroup)
set the group number |
void |
setItemSingleValued(boolean inSingleValued)
set the single value |
void |
setItemSubGroup(int inSubGroup)
set the sub group number |
void |
setItemUpdater(boolean inUpdater)
set the dynamic value |
void |
setItemUpdateWith(java.lang.String inUpdateWith)
set the itemUpdateWith |
void |
setItemUse(java.lang.String inUse)
Set the itemUse |
void |
setItemValues(java.lang.String[] inVal)
set the itemValues |
void |
setItemVisWith(java.lang.String inVisWith)
set the itemVisWith |
void |
setRetValues(java.lang.String[] inRetVal)
set the retValues |
java.lang.String |
toString()
Build and return a string representing the InfoItem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int ITEM_FIXED
public static int ITEM_EDITABLE
public static int ITEM_CHOICE
public static int ITEM_CHOICE_EDITABLE
public static int ITEM_EDITABLE_PSWD
| Constructor Detail |
public InfoItem(java.lang.String inUse,
java.lang.String inName,
int inCtlType,
int inGroup,
int inSubGroup,
boolean inSingleValued,
boolean inDynamic,
java.lang.String inVisWith,
boolean inUpdater,
java.lang.String inUpdateWith,
java.lang.String[] inVal)
inUse - is the unique name for this InfoItem by which data will be retrievedinName - is the display name for the GUIinCtlType - is the control type and will be one of:
ITEM_FIXED is for a single value which cannot be edited
ITEM_CHOICE is for multiple items which cannot be edited
ITEM_EDITABLE is for single or multiple items which can be edited
ITEM_EDITABLE_PSWD is for single items which are editable but protected
from displayinGroup - is the GRP is the row number in which the widget will be inserted,
monotonically increasing 0-ninSubGroup - is the column number for the widget, 0-minSingleValued - indicates whether the item is single/multivalued for
selectionsinDynamic - indicates whether the item is dynamic or not;
only one dynamic is allowed; causes only items with the current DYN value to be
displayedinVisWith - indicates which dynamic value(a inUse unique name) this item
is visible with.inVal - is an array of values for the itempublic InfoItem()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic void setItemUse(java.lang.String inUse)
inUse - is the new itemUse stringpublic void setItemDisplayName(java.lang.String inName)
inName - is the new itemDisplayNamepublic void setItemCtlType(int inCtlType)
inCtlType - is the integer control typepublic void setItemGroup(int inGroup)
inGroup - is the integer group numberpublic void setItemSubGroup(int inSubGroup)
inSubGroup - is the integer sub group numberpublic void setItemSingleValued(boolean inSingleValued)
inSingleValued - is the boolean valuepublic void setItemDynamic(boolean inDynamic)
inDynamic - is the boolean to usepublic void setItemVisWith(java.lang.String inVisWith)
inVisWith - is the string valuepublic void setItemUpdater(boolean inUpdater)
inUpdater - is the boolean to usepublic void setItemUpdateWith(java.lang.String inUpdateWith)
inUpdateWith - is the string valuepublic void setItemValues(java.lang.String[] inVal)
inVal - are the itemValues as a String[]public void setRetValues(java.lang.String[] inRetVal)
inRetVal - are the retValues as a String[]public java.lang.String getItemUse()
public java.lang.String getItemDisplayName()
public int getItemCtlType()
public int getItemGroup()
public int getItemSubGroup()
public boolean getItemSingleValued()
public boolean getItemDynamic()
public java.lang.String getItemVisWith()
public boolean getItemUpdater()
public java.lang.String getItemUpdateWith()
public java.lang.String[] getItemValues()
public java.lang.String[] getRetValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||