public class WCardLayout extends WLayout
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CARD_CHANGE |
DEFAULT_HEIGHT, DEFAULT_WIDTH, 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
构造器和说明 |
---|
WCardLayout() |
WCardLayout(int hgap,
int vgap) |
限定符和类型 | 方法和说明 |
---|---|
void |
addWidget(Widget widget,
int idx)
添加控件
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor toFindChart)
以JSONObject方式返回Widget的配置信息
|
double |
getCarouselInterval() |
int |
getDefaultShowIndex(int index)
获取展示和导出Index(默认是0,跳过隐藏tab)
|
java.lang.String |
getLayoutToolTip()
获取容器的提示
|
java.awt.Dimension |
getMinDesignSize()
获取容器的设计最小dimension
|
int |
getShowIndex() |
java.lang.String |
getShowIndex2Name() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isCarousel() |
void |
readXML(XMLableReader reader)
读取xml
|
void |
resize(double width,
double height,
double fontScale)
后台容器自适应reize
|
void |
setBackground(Background background)
设置主体背景
|
void |
setBtnsName(ButtonNameWrapper btnsName) |
void |
setCarousel(boolean carousel) |
void |
setCarouselInterval(double carouselInterval) |
void |
setShowIndex(int showIndex) |
void |
setShowIndexByName(java.lang.String name) |
void |
setWidgetName(java.lang.String widgetName)
设置组件的名字
|
java.lang.String[] |
supportedEvents()
支持的事件类型
|
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, canCurrentMarginAvailable, clone, createJSONItems, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, removeAll, removeWidget, replace, setBounds, setCompVisible, setScrollable, setWidgetIndex, toImage
getCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgap
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, 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 java.lang.String CARD_CHANGE
public void setBackground(Background background)
setBackground
在接口中 RichStyleWidgetProvider
setBackground
在类中 AbstractBorderStyleWidget
background
- 指定的背景public void setWidgetName(java.lang.String widgetName)
MixinControlWidget
setWidgetName
在接口中 MixinControlWidget
setWidgetName
在类中 Widget
widgetName
- 组件名字public int getShowIndex()
public void setShowIndex(int showIndex)
public void setBtnsName(ButtonNameWrapper btnsName)
public java.lang.String getShowIndex2Name()
public void setShowIndexByName(java.lang.String name)
public boolean isCarousel()
public void setCarousel(boolean carousel)
public double getCarouselInterval()
public void setCarouselInterval(double carouselInterval)
public java.lang.String[] supportedEvents()
supportedEvents
在类中 WLayout
public java.lang.String getXType()
Widget
getXType
在类中 AbstractGapWidget
public java.lang.String getLayoutToolTip()
WLayout
getLayoutToolTip
在类中 WLayout
public java.awt.Dimension getMinDesignSize()
WLayout
getMinDesignSize
在类中 WLayout
public int getDefaultShowIndex(int index)
public void addWidget(Widget widget, int idx)
widget
- 控件idx
- 索引public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException
createJSONConfig
在类中 WLayout
repo
- 参数repoc
- 指定解析器toFindChart
- 查找JSONException
- 异常public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout