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_TAG
compInterval, hgap, vgap
background, borderStyle, margin
AFTEREDIT, 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, supportedEvents
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, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, 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 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)
WLayout
public java.lang.String getLayoutToolTip()
getLayoutToolTip
在类中 WLayout
WLayout.getLayoutToolTip()
public java.awt.Dimension getMinDesignSize()
getMinDesignSize
在类中 WLayout
WLayout.getMinDesignSize()
public java.lang.String getXType()
getXType
在类中 AbstractGapWidget
Widget.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
在类中 WLayout
widget
- 组件public WAbsoluteLayout.BoundsWidget getBodyBoundsWidget()
public void updateChildBounds(java.awt.Rectangle rec)
updateChildBounds
在类中 Widget
rec
- 大小public void resize(double width, double height, double fontScale)
public void readXML(XMLableReader reader)
WLayout
readXML
在接口中 XMLReadable
readXML
在类中 WLayout
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
WLayout
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
WLayout
clone
在接口中 FCloneable
clone
在类中 WLayout
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常