Package ch.bailu.gtk.lib.bridge
Class UiBuilder
java.lang.Object
ch.bailu.gtk.lib.bridge.UiBuilder
Load user interface from XML descriptions (.ui file).
Facade for
Builder
.-
Method Summary
Modifier and TypeMethodDescriptionstatic UiBuilder
Load ui from file on file systemstatic UiBuilder
static UiBuilder
static UiBuilder
fromResource
(String path) Load ui file from resourcestatic UiBuilder
fromString
(String ui) Load ui from string
-
Method Details
-
getObject
-
fromString
Load ui from string- Parameters:
ui
- String containing XML description of ui- Returns:
- UiBuilder instance for accessing widgets
- Throws:
AllocationError
-
fromFile
- Throws:
AllocationError
-
fromFile
- Throws:
AllocationError
-
fromFile
Load ui from file on file system- Parameters:
file
- path to file on file system- Returns:
- UiBuilder instance for accessing widgets
- Throws:
AllocationError
-
fromResource
Load ui file from resource- Parameters:
path
- relative path to resource- Returns:
- UiBuilder instance for accessing widgets
- Throws:
IOException
AllocationError
-