public class WTabFitLayout extends WFitLayout
限定符和类型 | 字段和说明 |
---|---|
protected Background |
clickBackground |
protected Background |
initialBackground |
protected boolean |
isCustomStyle |
protected Background |
overBackground |
SCROLL_BAR_WIDTH, STATE_FULL, STATE_ORIGIN
DEFAULT_HEIGHT, DEFAULT_WIDTH, EVENT_AFTERINIT, EVENT_CLICK, MIN_HEIGHT, MIN_WIDTH, widgetList
compInterval, hgap, vgap
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName
构造器和说明 |
---|
WTabFitLayout()
构造函数
|
WTabFitLayout(java.lang.String widgetName)
构造方法,指定控件名
|
WTabFitLayout(java.lang.String widgetName,
int index)
构造方法,指定控件名
|
WTabFitLayout(java.lang.String widgetName,
int index,
CardSwitchButton currentCard)
构造方法,指定控件名
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
clone
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回自适应布局的配置信息, 并且将自适应布局内所有控件的配置信息以JSONArray形式存放在JSONObject的"items"
字段下,其他的则为控件间隔 是否缩放 容器大小
|
Background |
getClickBackground() |
CardSwitchButton |
getCurrentCard() |
int |
getIndex() |
Background |
getInitialBackground() |
Background |
getOverBackground() |
int |
getTabNameIndex() |
boolean |
isCustomStyle() |
Background |
readBackground(XMLableReader reader) |
void |
readXML(XMLableReader reader)
XML读取对象
|
void |
setClickBackground(Background clickBackground) |
void |
setCurrentCard(CardSwitchButton currentCard) |
void |
setCustomStyle(boolean customStyle) |
void |
setIndex(int index) |
void |
setInitialBackground(Background initialBackground) |
void |
setOverBackground(Background overBackground) |
void |
setTabNameIndex(int tabNameIndex) |
protected void |
writeLayoutTypeAttr(XMLPrintWriter writer) |
void |
writeXML(XMLPrintWriter writer)
XML写入对象
|
calculateNoRelatedWhileRightBott, calculateRelatedComponent, calculateRelatedJson, calculateRelatedWidgets, canCurrentMarginAvailable, createJSONItems, dealInvisible, getActualHeight, getActualWidth, getAllCompHeight, getAllCompWidth, getBodyLayoutType, getBoundsWidget, getCompState, getContainerHeight, getContainerWidth, getContentHeight, getContentWidth, getHorComps, getLayoutToolTip, getMinDesignSize, getResolutionScaling, getVertiComps, getXType, initWidgetsList, isAppRelayout, processFitLayoutInterval, processFitLayoutMargin, resetStyle, resize, resizeFitLayout, setAllVisible, setAppRelayout, setBounds, setCompState, setCompVisible, setContainerHeight, setContainerWidth, setHasResized, setLayoutType, setResolutionScaling
addMobileWidget, addMobileWidget, addToMobileList, addToMobileList, adjustOrder, clearMobileWidgetList, createItemIndexList, getMobileWidget, getMobileWidgetIterator, getMobileWidgetListSize, getOrderedMobileWidgetList, isContainsMoibleWidget, isSorted, removeMobileWidget, setSorted, updateSortedMobileWidgetList
addWidget, createPara4Mobile, equals, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, removeWidget, replace, setScrollable, setWidgetIndex, supportedEvents, toImage
getCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgap
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealWithPresentableValue, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, 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
protected Background initialBackground
protected Background overBackground
protected Background clickBackground
protected boolean isCustomStyle
public WTabFitLayout()
public WTabFitLayout(java.lang.String widgetName)
widgetName
- 控件名public WTabFitLayout(java.lang.String widgetName, int index)
widgetName
- 控件名public WTabFitLayout(java.lang.String widgetName, int index, CardSwitchButton currentCard)
widgetName
- 控件名public CardSwitchButton getCurrentCard()
public void setCurrentCard(CardSwitchButton currentCard)
public int getIndex()
public void setIndex(int index)
public int getTabNameIndex()
public void setTabNameIndex(int tabNameIndex)
public Background getInitialBackground()
public void setInitialBackground(Background initialBackground)
public Background getOverBackground()
public void setOverBackground(Background overBackground)
public Background getClickBackground()
public void setClickBackground(Background clickBackground)
public boolean isCustomStyle()
public void setCustomStyle(boolean customStyle)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
WFitLayout
createJSONConfig
在类中 WFitLayout
repo
- : see Repository正文c
- : 指定解析器nodeVisitor
- 查找JSONException
- json异常public void writeXML(XMLPrintWriter writer)
WFitLayout
writeXML
在接口中 XMLWriter
writeXML
在类中 WFitLayout
writer
- 写入public Background readBackground(XMLableReader reader)
public void readXML(XMLableReader reader)
WFitLayout
readXML
在接口中 XMLReadable
readXML
在类中 WFitLayout
reader
- 读取XMLableReader
protected void writeLayoutTypeAttr(XMLPrintWriter writer)
writeLayoutTypeAttr
在类中 WFitLayout
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 WLayout
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常