public final class PVEnumeratedFactory extends Object implements PVEnumerated
Constructor and Description |
---|
PVEnumeratedFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
attach(PVField pvField)
Attempt to attach to the enumerated field.
|
boolean |
choicesMutable()
Are the choices mutable.
|
static PVEnumerated |
create()
Create a PVControl.
|
void |
detach()
Remove attachment to an enumerated field.
|
String |
getChoice()
Get the choice corresponding to the current index.
|
String[] |
getChoices()
Get the current choices.
|
int |
getIndex()
Get the current index.
|
boolean |
isAttached()
Is this attached to an enumerated structure.
|
boolean |
setChoices(String[] choices)
Set the choices.
|
boolean |
setIndex(int index)
Set the index.
|
public static PVEnumerated create()
public boolean attach(PVField pvField)
PVEnumerated
attach
in interface PVEnumerated
pvField
- The field for which to find an enumerated field,public void detach()
PVEnumerated
detach
in interface PVEnumerated
public boolean isAttached()
PVEnumerated
isAttached
in interface PVEnumerated
public boolean choicesMutable()
PVEnumerated
choicesMutable
in interface PVEnumerated
public String getChoice()
PVEnumerated
getChoice
in interface PVEnumerated
public String[] getChoices()
PVEnumerated
getChoices
in interface PVEnumerated
public int getIndex()
PVEnumerated
getIndex
in interface PVEnumerated
public boolean setChoices(String[] choices)
PVEnumerated
setChoices
in interface PVEnumerated
choices
- The choices.public boolean setIndex(int index)
PVEnumerated
setIndex
in interface PVEnumerated
index
- The value.Copyright © 2014. All Rights Reserved.