类 UIBuilderDelegate<T extends JComponent>
java.lang.Object
pkg.exoad.poprock.desktop.ui.UIDelegate<T>
pkg.exoad.poprock.desktop.ui.UIBuilderDelegate<T>
- 所有已实现的接口:
SelfReportingMixin
,UIBasicDelegate<T>
A builder delegate that allows for the usage of a lambda
Supplier
inplace of a regular delegate. This is
especially useful for logical delegation that a simple ternary operator
cannot suffice.
Example Usage
You could definitely do something similar where the logic forUIOtherDelegate().make() .withComponent( UIBuilderDelegate.make(()-> { int i=fetchSomeNumber(); return GlobalContext.at(i); } ) )
fetchSomeNumber
was handled outside of the root
UIOtherDelegate
's make, but most of the time this is not the case- 作者:
- Jack Meng
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 pkg.exoad.poprock.desktop.ui.UIDelegate
UIDelegate.Alignment, UIDelegate.DelegateProperties
-
字段概要
从类继承的字段 pkg.exoad.poprock.desktop.ui.UIDelegate
rootDelegate
-
构造器概要
-
方法概要
修饰符和类型方法说明Converts to a Swing Lightweight component formstatic <B extends JComponent>
UIBuilderDelegate<B>make
(Supplier<UIDelegate<B>> component) 从类继承的方法 pkg.exoad.poprock.desktop.ui.UIDelegate
exposeProperties, makeWith, setRootDelegate, setVisibility, withAlignmentX, withAlignmentY, withBorder, withPadding, withPadding, withPreferredSize, withTransparency, withVisibility
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 pkg.exoad.poprock.core.debug.SelfReportingMixin
getCanonicallyNamedThis, getNamedThis
从接口继承的方法 pkg.exoad.poprock.desktop.ui.UIBasicDelegate
hardRefresh, refresh
-
字段详细资料
-
builder
-
-
构造器详细资料
-
UIBuilderDelegate
-
-
方法详细资料
-
make
-
asComponent
从接口复制的说明:UIBasicDelegate
Converts to a Swing Lightweight component form- 指定者:
asComponent
在接口中UIBasicDelegate<T extends JComponent>
- 覆盖:
asComponent
在类中UIDelegate<T extends JComponent>
- 返回:
- as an awt suitable component (this should be used for internal operations only)
-