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 UiBuilderLoad ui from file on file systemstatic UiBuilderstatic UiBuilderstatic UiBuilderfromResource(String path) Load ui file from resourcestatic UiBuilderfromString(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:
IOExceptionAllocationError
-