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_TAGcompInterval, hgap, vgapbackground, borderStyle, marginAFTEREDIT, 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, toImagegetCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgapaddWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBorderStyle, setBorderStyleNoBackground, setMarginacceptType, 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, value2ConfigaddListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSizecopy, getId, getNameSpace, setId, setNameSpacegetClassInfo, getData, invalidate, isLoad, setClassInfo, setDatapublic static final java.lang.String CARD_CHANGE
public void setBackground(Background background)
setBackground 在接口中 RichStyleWidgetProvidersetBackground 在类中 AbstractBorderStyleWidgetbackground - 指定的背景public void setWidgetName(java.lang.String widgetName)
MixinControlWidgetsetWidgetName 在接口中 MixinControlWidgetsetWidgetName 在类中 WidgetwidgetName - 组件名字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 在类中 WLayoutpublic java.lang.String getXType()
WidgetgetXType 在类中 AbstractGapWidgetpublic java.lang.String getLayoutToolTip()
WLayoutgetLayoutToolTip 在类中 WLayoutpublic java.awt.Dimension getMinDesignSize()
WLayoutgetMinDesignSize 在类中 WLayoutpublic 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 在类中 WLayoutrepo - 参数repoc - 指定解析器toFindChart - 查找JSONException - 异常public void readXML(XMLableReader reader)
WLayoutreadXML 在接口中 XMLReadablereadXML 在类中 WLayoutreader - XML读取对象XMLableReaderpublic void writeXML(XMLPrintWriter writer)
WLayout