Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
jvx:client:gui:custom_factory [2018/02/02 11:22] admin |
jvx:client:gui:custom_factory [2024/11/18 10:42] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTRANS~~ | ~~NOTRANS~~ | ||
| - | ~~Title: Custom IFactory implementation~~ | + | ~~Title: Custom IFactory Implementation~~ |
| - | Sometimes you need additional methods in your UI factory, e.g. create custom controls, preconfigure existing controls. | + | Sometimes you need additional methods in your UI factory, e.g., create custom controls or preconfigure existing controls. |
| The UI factory is one of the first classes that is instantiated from a launcher. If you need a custom factory, use an application parameter to configure it. | The UI factory is one of the first classes that is instantiated from a launcher. If you need a custom factory, use an application parameter to configure it. | ||
| Line 11: | Line 11: | ||
| package apps.firstapp; | package apps.firstapp; | ||
| - | import javax.rad.genui.UIImage; | + | import jvx.rad.genui.UIImage; |
| - | import javax.rad.ui.IAlignmentConstants; | + | import jvx.rad.ui.IAlignmentConstants; |
| - | import javax.rad.ui.component.IButton; | + | import jvx.rad.ui.component.IButton; |
| import com.sibvisions.rad.ui.swing.impl.SwingFactory; | import com.sibvisions.rad.ui.swing.impl.SwingFactory; | ||
| Line 33: | Line 33: | ||
| </file> | </file> | ||
| - | Our factory extends the default SwingFactory and overwrites createButton. All created buttons have a default icon, no border and the text is left aligned. | + | Our factory extends the default SwingFactory and overwrites createButton. All created buttons have a default icon, no border, and the text is left aligned. |
| - | Now we configure our custom factory via commandline: | + | Now we configure our custom factory via command-line: |
| <file script> | <file script> | ||
