public class WCardTagLayout extends WHorizontalBoxLayout
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CARD_CHANGE |
static int |
DESIGNER_DEFAULT_GAP |
static int |
NO_DEFAULT_WIDTH |
CENTER, DEFAULT_HGAP, DEFAULT_VGAP, displayPosition, LEFT, RIGHT
DEFAULT_HEIGHT, EVENT_AFTERINIT, EVENT_CLICK, MIN_HEIGHT, MIN_WIDTH, widgetList, XML_TAG
compInterval, hgap, vgap
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName
构造器和说明 |
---|
WCardTagLayout()
用来反射的
|
WCardTagLayout(java.lang.String widgetName) |
限定符和类型 | 方法和说明 |
---|---|
void |
adjustPreferWidth()
自动调整宽度
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
获取当前控件json格式数据
|
protected JSONArray |
createJSONItems(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONArray方式返回布局内所有控件的配置信息。
|
int |
getAlignment() |
java.lang.String |
getCardName() |
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
MobileTemplateStyle |
getMobileTemplateStyle() |
CardSwitchButton |
getSwitchButton(int index) |
TemplateStyle |
getTemplateStyle() |
WTabTextDirection |
getTextDirection() |
FRFont |
getTitleFont() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isNewTab() |
void |
readXML(XMLableReader reader)
读取xml
|
void |
setAlignment(int align) |
void |
setCardName(java.lang.String cardName) |
void |
setMobileTemplateStyle(MobileTemplateStyle mobileTemplateStyle) |
void |
setNewTab(boolean newTab) |
void |
setTemplateStyle(TemplateStyle templateStyle) |
void |
setTextDirection(WTabTextDirection textDirection) |
void |
setTitleFont(FRFont titleFont) |
void |
setWidgetName(java.lang.String name)
设置组件的名字
|
java.lang.String[] |
supportedEvents()
支持的事件类型
|
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, addWidget, addWidthWidget, clone, getDisplayPosition, getWidthAtWidget, removeWidget, setDisplayPosition, setWidthAtIndex, setWidthAtWidget
canCurrentMarginAvailable, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, replace, resize, setBounds, setCompVisible, setScrollable, setWidgetIndex, toImage
getCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgap
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final int DESIGNER_DEFAULT_GAP
public static final int NO_DEFAULT_WIDTH
public static final java.lang.String CARD_CHANGE
public WCardTagLayout()
public WCardTagLayout(java.lang.String widgetName)
public boolean isNewTab()
public void setNewTab(boolean newTab)
public java.lang.String getCardName()
public void setCardName(java.lang.String cardName)
public TemplateStyle getTemplateStyle()
public void setTemplateStyle(TemplateStyle templateStyle)
public MobileTemplateStyle getMobileTemplateStyle()
public void setMobileTemplateStyle(MobileTemplateStyle mobileTemplateStyle)
public int getAlignment()
getAlignment
在类中 WHorizontalBoxLayout
public void setAlignment(int align)
setAlignment
在类中 WHorizontalBoxLayout
public WTabTextDirection getTextDirection()
public void setTextDirection(WTabTextDirection textDirection)
public void setWidgetName(java.lang.String name)
MixinControlWidget
setWidgetName
在接口中 MixinControlWidget
setWidgetName
在类中 Widget
name
- 组件名字public FRFont getTitleFont()
public void setTitleFont(FRFont titleFont)
public java.lang.String getXType()
Widget
getXType
在类中 WHorizontalBoxLayout
public void adjustPreferWidth()
public java.lang.String[] supportedEvents()
supportedEvents
在类中 WLayout
public CardSwitchButton getSwitchButton(int index)
public java.lang.String getLayoutToolTip()
WLayout
getLayoutToolTip
在类中 WHorizontalBoxLayout
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WHorizontalBoxLayout
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig
在类中 WHorizontalBoxLayout
repo
- 上下文信息c
- 算子toFindChart
- 查找JSONException
- 异常protected JSONArray createJSONItems(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONItems
在类中 WLayout
repo
- : see Repositoryc
- : 指定解析器JSONException
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WHorizontalBoxLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout
writeXML
在接口中 XMLWriter
writeXML
在类中 WHorizontalBoxLayout
writer
- the PrintWriter.