JSampler
v0.8a

org.jsampler.view
Class JSViews

java.lang.Object
  extended by org.jsampler.view.JSViews

public class JSViews
extends java.lang.Object

This class provides information about the available views in the current distribution.


Method Summary
static java.lang.String[] getAvailableViews()
          Gets a list of all available views.
static java.lang.String getCurrentView()
          Gets the current view name of this distribution.
static java.lang.String getDefaultView()
          Gets the default view name of this distribution.
static void parseManifest()
          Parses the manifest file views.mf to gather information about the available views in this JSampler distribution.
static void setView(java.lang.String viewName)
          Changes the current view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableViews

public static java.lang.String[] getAvailableViews()
Gets a list of all available views.

Returns:
A list of all available views.

getCurrentView

public static java.lang.String getCurrentView()
Gets the current view name of this distribution.

Returns:
The current view name of this distribution.

getDefaultView

public static java.lang.String getDefaultView()
Gets the default view name of this distribution.

Returns:
The default view name of this distribution.

setView

public static void setView(java.lang.String viewName)
Changes the current view. This method should be invoked only from the event-dispatching thread.

Parameters:
viewName - The new view to be used.

parseManifest

public static void parseManifest()
Parses the manifest file views.mf to gather information about the available views in this JSampler distribution.


JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.