public class WTitleLayout extends WLayout
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
BODY |
static java.lang.String |
TITLE |
static int |
TITLE_HEIGHT |
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| 构造器和说明 |
|---|
WTitleLayout()
构造函数
|
WTitleLayout(int gap) |
WTitleLayout(java.lang.String widgetName)
构造方法,指定控件名
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBody(Widget widget,
java.awt.Rectangle b)
增加组件
|
void |
addTitle(Widget widget,
java.awt.Rectangle bound)
增加组件
|
java.lang.Object |
clone()
克隆
|
WAbsoluteLayout.BoundsWidget |
getBodyBoundsWidget()
返回主体的boundsWidget
|
java.lang.String |
getLayoutToolTip()
控件提示名
|
java.awt.Dimension |
getMinDesignSize()
最小尺寸为36x21
|
java.lang.String |
getXType()
控件容器类型
|
void |
readXML(XMLableReader reader)
读取xml
|
void |
removeAll()
移除所有组件
|
void |
removeWidget(Widget widget)
移除组件
|
void |
resize(double width,
double height,
double fontScale)
重新调整大小
|
void |
toImage(Calculator ca,
java.awt.Rectangle rec,
java.awt.Graphics g)
将当前控件转化为图片, 目前支持报表块与图表块
|
void |
updateChildBounds(java.awt.Rectangle rec)
新增后,更新对应的boundWidget实际大小
|
void |
writeXML(XMLPrintWriter writer)
输出xml
|
addWidget, canCurrentMarginAvailable, createJSONConfig, createJSONItems, createPara4Mobile, equals, getBoundsWidget, getWidget, getWidget, getWidgetCount, getWidgetIndex, hashCode, isEditor, isScrollable, replace, setBounds, setCompVisible, setScrollable, setWidgetIndex, supportedEventsgetCompInterval, getHgap, getVgap, setCompInterval, setHgap, setVgapaddWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, 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, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, value2ConfigaddListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSizecopy, getId, getNameSpace, setId, setNameSpacegetClassInfo, getData, invalidate, isLoad, setClassInfo, setDatapublic static final java.lang.String TITLE
public static final java.lang.String BODY
public static final int TITLE_HEIGHT
public WTitleLayout()
public WTitleLayout(int gap)
public WTitleLayout(java.lang.String widgetName)
widgetName - 控件名public void toImage(Calculator ca, java.awt.Rectangle rec, java.awt.Graphics g)
WLayoutpublic java.lang.String getLayoutToolTip()
getLayoutToolTip 在类中 WLayoutWLayout.getLayoutToolTip()public java.awt.Dimension getMinDesignSize()
getMinDesignSize 在类中 WLayoutWLayout.getMinDesignSize()public java.lang.String getXType()
getXType 在类中 AbstractGapWidgetWidget.getXType()public void addTitle(Widget widget, java.awt.Rectangle bound)
widget - 组件bound - 组件boundpublic void addBody(Widget widget, java.awt.Rectangle b)
widget - 组件b - public void removeWidget(Widget widget)
removeWidget 在类中 WLayoutwidget - 组件public WAbsoluteLayout.BoundsWidget getBodyBoundsWidget()
public void updateChildBounds(java.awt.Rectangle rec)
updateChildBounds 在类中 Widgetrec - 大小public void resize(double width,
double height,
double fontScale)
public void readXML(XMLableReader reader)
WLayoutreadXML 在接口中 XMLReadablereadXML 在类中 WLayoutreader - XML读取对象XMLableReaderpublic void writeXML(XMLPrintWriter writer)
WLayoutpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
WLayoutclone 在接口中 FCloneableclone 在类中 WLayoutjava.lang.CloneNotSupportedException - 如果克隆失败则抛出此异常