public abstract class PhantomListCapableControl extends PhantomControl
Modifier and Type | Field and Description |
---|---|
boolean |
isDirectChecked
Indicates if every character pressed is checked.
|
boolean |
isHostConverted
Flag for list is host converted.
|
boolean |
isSorted
Flag indicating list requires sorting.
|
controlBase, controlColor, id, index, isBackgroundConverted, isForegroundConverted, object, panelData, popupMenu, tooltipText
CTRLTYPE_BUTTON, CTRLTYPE_CHECK, CTRLTYPE_COMBO, CTRLTYPE_FRAME, CTRLTYPE_GRAPH, CTRLTYPE_GROUP, CTRLTYPE_INOUT, CTRLTYPE_LIST, CTRLTYPE_MLE, CTRLTYPE_NOTE, CTRLTYPE_OUT, CTRLTYPE_RADIO, CTRLTYPE_RECT, CTRLTYPE_SPIN, CTRLTYPE_SUB, CTRLTYPE_TEXT, CTRLTYPE_TREE, CTRLTYPE_UNKNOWN, CTRLTYPE_USER, CTRLTYPES_COUNT, names
CTRLFLAG_MOVEX, CTRLFLAG_MOVEY, CTRLFLAG_NEWGROUP, CTRLFLAG_SIZEX, CTRLFLAG_SIZEY, CTRLFLAG_SUBWIN, CTRLFLAG_TABSTOP, CTRLFLAG_TRANSPARENT
Modifier | Constructor and Description |
---|---|
|
PhantomListCapableControl(PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Constructor matching PhantomControl.
|
protected |
PhantomListCapableControl(PhantomPanelData panelData,
int index,
PhantomControlBase controlBase,
Vector<String> list)
Constructor matching PhantomControl but for GUI-on-the-fly.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNPObjects(ENPObject obj)
Gets the NPObject for the control.
|
protected boolean |
equalsControl(PhantomControl c)
Checks for control equality.
|
protected abstract int |
getBaseDataSize()
Gets the base data size of the extending control.
|
protected int |
getContentSize()
The content size of the lists.
|
int |
getDataSize(PhantomOutputFile outputFile)
Get the size when saved to file.
|
FileListContent |
getFileListContent()
Gets the file list contents instance, it is null if no
external file is used.
|
Vector<String> |
getListContent()
Gets the current content list.
|
Vector<String> |
getListConversion()
Gets the current conversion list.
|
Vector<String>[] |
getLists(VirtualPanel panel)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
Object[] isChanged)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
String newFN)
Gets the lists in a two-vector array.
|
Vector<String>[] |
getLists(VirtualPanel panel,
String newFN,
Object[] isChanged)
Gets the lists in a two-vector array.
|
void |
getReferencedFiles(ArrayList<String> files)
Adds all files that are referenced by this control.
|
abstract boolean |
hasFileName()
Checks for filename.
|
boolean |
isSorted()
If the list is sorted.
|
protected void |
loadContents(boolean hasValueRange,
PhantomFile data,
int size)
Loads the contents of the list or file name.
|
protected void |
saveContents(PhantomOutputFile file)
Saves the contents of the lists.
|
void |
updateReferences(ApplicationReferences refs,
String descr)
Updates the Applications References instance.
|
addControlID, addControlReference, addHostFieldReference, appendBaseTransaction, checkTextPromptReferences, checkTextPromptReferences, clone, create, createNPObject, equals, getApplicationData, getBackgroundColor, getControlObjectID, getDesignerControl, getForegroundColor, getHostField, getHostFieldID, getID, getIndex, getNPObjectExtra, getNPObjectID, getObject, getObject, getPanelData, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, isActionConnectedEnabled, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, rebind, reloadObject, resolveComponentReferences, save, saveBase, setBackgroundColor, setForegroundColor, setIndex, updateGuiOnTheFlyValue, updateReferences
public boolean isHostConverted
public boolean isSorted
public boolean isDirectChecked
public PhantomListCapableControl(PhantomPanelData panelData, int index, PhantomControlBase controlBase)
protected PhantomListCapableControl(PhantomPanelData panelData, int index, PhantomControlBase controlBase, Vector<String> list)
public abstract boolean hasFileName()
protected abstract int getBaseDataSize()
protected final void loadContents(boolean hasValueRange, PhantomFile data, int size) throws IOException
IOException
- For file errors.public final boolean isSorted()
public final FileListContent getFileListContent()
public final void getReferencedFiles(ArrayList<String> files)
getReferencedFiles
in class PhantomControl
files
- The ArrayList of file names that are referenced will
be filled in.protected final int getContentSize()
public final int getDataSize(PhantomOutputFile outputFile)
getDataSize
in class PhantomControl
protected final void saveContents(PhantomOutputFile file) throws IOException
IOException
- For write errors.protected boolean equalsControl(PhantomControl c)
equalsControl
in class PhantomControl
public final Vector<String> getListConversion()
public final Vector<String> getListContent()
public final Vector<String>[] getLists(VirtualPanel panel)
public final Vector<String>[] getLists(VirtualPanel panel, Object[] isChanged)
The parameter "isChanged" should be null or an Object[1] array initiated with null as Object[0]. Upon return, the Object[0] member is non-null if the text is formatted according to the panel causing the file not to be able to be cached on the client.
public final Vector<String>[] getLists(VirtualPanel panel, String newFN)
public final Vector<String>[] getLists(VirtualPanel panel, String newFN, Object[] isChanged)
The parameter "isChanged" should be null or an Object[1] array initiated with null as Object[0]. Upon return, the Object[0] member is non-null if the text is formatted according to the panel causing the file not to be possible to cache on the client.
public void updateReferences(ApplicationReferences refs, String descr)
protected void addNPObjects(ENPObject obj)
addNPObjects
in class PhantomControl
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.