public class PhantomCNoteBook extends PhantomControl
Modifier and Type | Field and Description |
---|---|
PhantomCNoteBookAction |
actionNext |
PhantomCNoteBookAction |
actionPrevious
Notebook action previous/next.
|
static int |
FLAG_3DFRAME |
static int |
FLAG_GLOBALPREVNEXT
Global notebook flag.
|
static int |
FLAG_GOF |
static int |
FLAG_NOTBOLD |
static int |
FLAG_PRELOADPAGES |
static int |
FLAG_RIGHTTOLEFT |
int |
flags |
String |
id
Notebook control id.
|
PhantomPanelData |
mainPanel
The main panel where the notebook is located.
|
static int |
MAX_NOTEBOOKPAGES
Notebook pages (= panels).
|
int |
notebookLook
Notebook look: Win wrap, Win95 wrap or single line.
|
String |
objectName
Global object: name and object.
|
int |
pageCount
Number of notebook pages/panels.
|
PhantomCNoteBookPage[] |
pages |
int |
tabFont
Tab font.
|
int |
tabPosition
Tab position: top/bottom.
|
controlBase, controlColor, 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
Constructor and Description |
---|
PhantomCNoteBook(PhantomFile data)
Constructor for Designer control.
|
PhantomCNoteBook(PhantomFile data,
PhantomPanelData panelData,
int index,
PhantomControlBase controlBase)
Creates an instance of the control class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNPObjects(ENPObject obj)
Gets the NPObject for the control.
|
boolean |
doPreloadPages()
Return preload pages flag.
|
protected boolean |
equalsControl(PhantomControl c)
Checks for control equality.
|
String |
getControlObjectID()
Needs override by the control if the
object instance if not resolved in this class instance. |
int |
getDataSize(PhantomOutputFile outputFile)
Get the size when saved to file.
|
se.entra.phantom.geditor.NPPColor |
getTabColor()
Get tab foreground color.
|
boolean |
has3dFrame()
Return 3d frame flag.
|
boolean |
isBold()
Return bold flag.
|
boolean |
isGlobalActionFlag()
Return GlobalAction
|
boolean |
performAction(VirtualPanel panel,
boolean moveForward,
int page,
String argString)
Perform action for one page or use global action if specified.
|
void |
rebind()
Re-bind the panel data.
|
void |
reloadObject()
Reload object reference.
|
void |
resolveComponentReferences()
Resolves panel ID to PhantomPanelData,
after all panels has been loaded.
|
void |
save(PhantomOutputFile file)
Saves the instance of the control class to file.
|
void |
updateReferences(ApplicationReferences refs)
Updates the Applications References instance.
|
addControlID, addControlReference, addHostFieldReference, appendBaseTransaction, checkTextPromptReferences, checkTextPromptReferences, clone, create, createNPObject, equals, getApplicationData, getBackgroundColor, getDesignerControl, getForegroundColor, getHostField, getHostFieldID, getID, getIndex, getNPObjectExtra, getNPObjectID, getObject, getObject, getPanelData, getReferencedFiles, getTypeDescription, getTypeDescriptionID, initializeDesignerControls, isActionConnectedEnabled, processColorConversion, processColorConversion, processColorConversion, processDisabledBackground, saveBase, setBackgroundColor, setForegroundColor, setIndex, updateGuiOnTheFlyValue
public static final int FLAG_GLOBALPREVNEXT
public static final int FLAG_3DFRAME
public static final int FLAG_PRELOADPAGES
public static final int FLAG_RIGHTTOLEFT
public static final int FLAG_NOTBOLD
public static final int FLAG_GOF
public int flags
public int pageCount
public int tabFont
public String id
public String objectName
public int tabPosition
public int notebookLook
public PhantomPanelData mainPanel
public static final int MAX_NOTEBOOKPAGES
public PhantomCNoteBookPage[] pages
public PhantomCNoteBookAction actionPrevious
public PhantomCNoteBookAction actionNext
public PhantomCNoteBook(PhantomFile data, PhantomPanelData panelData, int index, PhantomControlBase controlBase) throws IOException
Base: + flags ULONG + pageCount SHORT + tabFont SHORT + reserved SHORT (statusFont) + tabForeground BYTE + reserved BYTE (tabBackground) + reserved BYTE (statusForeground) + reserved BYTE (statusBackground) + id BYTE [9] + objectName BYTE [9] + reserved BYTE [21] (textPage1) + reserved BYTE [21] (textPage2) + reserved BYTE [21] (textPage3) + reserved BYTE (align1) + tabPosition BYTE (bMajorPos) + reserved BYTE (bPageBackPos) + notebookLook SHORT (sLook) + reserved BYTE [92] Action previous/next: + flags ULONG + sendKey SHORT + objectName BYTE [9] + hostFieldName BYTE [9] + sendString BYTE [32] + reserved BYTE [72] + Notebook pages (numPages times)
IOException
- if an I/O error occurs.public PhantomCNoteBook(PhantomFile data) throws IOException
IOException
- if an I/O error occurs.public void rebind()
rebind
in class PhantomControl
public void save(PhantomOutputFile file) throws IOException
Base: + flags ULONG + pageCount SHORT + tabFont SHORT + reserved SHORT (statusFont) + tabForeground BYTE + reserved BYTE (tabBackground) + reserved BYTE (statusForeground) + reserved BYTE (statusBackground) + id BYTE [9] + objectName BYTE [9] + reserved BYTE [21] (textPage1) + reserved BYTE [21] (textPage2) + reserved BYTE [21] (textPage3) + reserved BYTE (align1) + tabPosition BYTE (bMajorPos) + reserved BYTE (bPageBackPos) + notebookLook SHORT (sLook) + reserved BYTE [92] Action previous/next: + flags ULONG + sendKey SHORT + objectName BYTE [9] + hostFieldName BYTE [9] + sendString BYTE [32] + reserved BYTE [72] + Notebook pages (numPages times)
save
in class PhantomControl
file
- IOException
- if an I/O error occurs.public int getDataSize(PhantomOutputFile outputFile)
getDataSize
in class PhantomControl
public boolean has3dFrame()
public boolean isBold()
public boolean isGlobalActionFlag()
public boolean doPreloadPages()
public void resolveComponentReferences()
resolveComponentReferences
in class PhantomControl
public boolean performAction(VirtualPanel panel, boolean moveForward, int page, String argString)
public se.entra.phantom.geditor.NPPColor getTabColor()
public void reloadObject() throws IOException
reloadObject
in class PhantomControl
IOException
public void updateReferences(ApplicationReferences refs)
updateReferences
in class PhantomControl
protected void addNPObjects(ENPObject obj)
addNPObjects
in class PhantomControl
public String getControlObjectID()
object
instance if not resolved in this class instance.getControlObjectID
in class PhantomControl
protected boolean equalsControl(PhantomControl c)
equalsControl
in class PhantomControl
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.