de.lessvoid.nifty.examples
Interface NiftyExample

All Known Implementing Classes:
AllControlsDemoStartScreen, AllExamplesMain, ButtonExample, ChatExample, CheckboxExample, ConsoleDemoStartScreen, ConsoleExample, ConsoleSameScreenStartScreen, ControlsDemo, ControlsDemoStartScreen, DragDropScreen, DropdownExample, DynamicStyleStartScreen, FalloffExample, HelloNiftyBuilderExampleMain, HelloWorldStartScreen, HintScreen, ImageselectExample, LabelExample, LabelStartScreen, ListboxExample, LocalizeTestScreen, MenuStartScreen, MessageBoxStartScreen, MouseStartScreen, ProgressbarControl, RadiobuttonExample, ReloadScreen, ResizeMain, ResolutionScreen, ScrollbarExample, ScrollDemoStartScreen, ScrollpanelExample, SliderExample, StartScreenController, TableStartScreen, TabsExample, TestScreen, TextAlignStartScreen, TextFieldDemoStartScreen, TextfieldExample, WindowExample

public interface NiftyExample

This class defines a example for Nifty. If defines how the example is supposed to be load in a unified way.

Author:
Martin Karing <nitram@illarion.org>

Method Summary
 String getMainXML()
          The resource path of the XML file that is supposed to be load for the example.
 String getStartScreen()
          The start screen that is supposed to be load initial.
 String getTitle()
          The title of this demonstration example.
 void prepareStart(Nifty nifty)
          This function is called right before the example itself is executed.
 

Method Detail

getStartScreen

String getStartScreen()
The start screen that is supposed to be load initial.

Returns:
the name of the start screen

getMainXML

String getMainXML()
The resource path of the XML file that is supposed to be load for the example.

Returns:
the resource path to the main XML or null in case no XML file is supposed to be load

getTitle

String getTitle()
The title of this demonstration example.

Returns:
the title of this example

prepareStart

void prepareStart(Nifty nifty)
This function is called right before the example itself is executed. In case building or changing the GUI before its displayed is required: This is the place.

Parameters:
nifty - the used instance of the Nifty-GUI


Copyright © 2012. All Rights Reserved.