public abstract class PhantomCBarControl extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
ADD_FRAME |
static int |
ALIGN_BOTTOM |
static int |
ALIGN_LEFT |
static int |
ALIGN_MASK |
static int |
ALIGN_RIGHT |
static int |
ALIGN_TOP |
protected PhantomCBar |
bar
The bar data
|
protected int |
barControlBGColor
Control background color (From ini file, Should this be moved to properties?).
|
protected int |
barControlFGColor
Control foreground color (From ini file, Should this be moved to properties?).
|
protected int |
barControlFont
Control font (From ini file, Should this be moved to properties?).
|
static int |
CF_DISPLAY_HIDDEN |
static int |
CF_GREYOFF |
static int |
CF_RECTTOTEXT |
static int |
CF_XLATE |
protected int |
controlFlags
Control flags.
|
protected int |
controlType
Control type index, defined in PhantomCBar.
|
static int |
RECT_2D |
static int |
RECT_3D_IN |
static int |
RECT_3D_OUT |
static int |
RECT_MASK |
static int |
RECT_NONE |
protected int |
subControlType
Sub control type, for instance short time.
|
static int |
TXT_JUST_CENTER |
static int |
TXT_JUST_MASK |
static int |
TXT_JUST_RIGHT |
protected int |
width
Width of bar control (or -1 default, -2= dynamic width).
|
Constructor and Description |
---|
PhantomCBarControl()
Empty constructor for new properties.
|
PhantomCBarControl(PhantomCBar bar,
PhantomFile data)
This constructor to the bar control superclass reads the
general information for all bar controls:
subcontrol type and control flags.
|
Modifier and Type | Method and Description |
---|---|
protected int |
convertHorzJustification()
Convert old style horizontal justification to new property justification.
|
boolean |
doDisplayHidden()
Display hidden text.
|
boolean |
doTranslate()
Do translate.
|
boolean |
equals(Object o)
Checks for equality.
|
String |
getClientClass()
Get class name for client class.
|
int |
getConnectedControlIndex(PhantomPanelData panel,
String name)
Gets the connected menu item or push button index.
|
int |
getControlFlags()
Returns the control flags
|
int |
getControlType()
Returns the control type
|
void |
getFontAndColors(IniFile ini,
int index)
Loads font and color settings from the opened ini-file BARFILE.PHB.ini from the
[base] section.
|
String |
getLabel()
Returns the label
|
int |
getSubControlType()
Returns the sub control type
|
VirtualCBarControl |
getVirtualControl(VirtualCBar bar,
PhantomCBarControl phantomControl)
Create virtual instance that corresponds to this class.
|
int |
getWidth()
Returns the width
|
boolean |
isHeightToText()
Set rect height to text.
|
void |
setWidth(int w)
Sets the width
|
protected PhantomCBar bar
protected int width
protected int controlType
protected int subControlType
public static final int RECT_3D_IN
public static final int RECT_3D_OUT
public static final int RECT_2D
public static final int RECT_NONE
public static final int RECT_MASK
public static final int TXT_JUST_CENTER
public static final int TXT_JUST_RIGHT
public static final int TXT_JUST_MASK
public static final int CF_GREYOFF
public static final int ADD_FRAME
public static final int ALIGN_BOTTOM
public static final int ALIGN_RIGHT
public static final int ALIGN_TOP
public static final int ALIGN_LEFT
public static final int ALIGN_MASK
public static final int CF_XLATE
public static final int CF_RECTTOTEXT
public static final int CF_DISPLAY_HIDDEN
protected int controlFlags
protected int barControlFont
protected int barControlFGColor
protected int barControlBGColor
public PhantomCBarControl(PhantomCBar bar, PhantomFile data) throws IOException
IOException
- if an I/O error occurs.public PhantomCBarControl()
public void getFontAndColors(IniFile ini, int index)
public int getControlType()
public int getSubControlType()
public int getControlFlags()
public int getWidth()
public String getLabel()
public void setWidth(int w)
public boolean doTranslate()
public boolean isHeightToText()
public boolean doDisplayHidden()
protected int convertHorzJustification()
public int getConnectedControlIndex(PhantomPanelData panel, String name)
public String getClientClass()
public VirtualCBarControl getVirtualControl(VirtualCBar bar, PhantomCBarControl phantomControl)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.