org.utgenome.gwt.widget.client
Class TrackFrame

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.utgenome.gwt.widget.client.TrackFrame
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
TrackPanelBase

public abstract class TrackFrame
extends com.google.gwt.user.client.ui.Composite

Author:
leo

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static int BUTTON_ADJUSTHEIGHT
           
static int BUTTON_ALL
           
static int BUTTON_CLOSE
           
static int BUTTON_CONFIG
           
static int BUTTON_MINIMIZE
           
static int BUTTON_RELOAD
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TrackFrame()
           
 
Method Summary
abstract  void addTrackButtonListener(TrackButtonListener listener)
           
abstract  void enableResizeHeight(boolean enable)
          Enable resize of the track height
abstract  void enableResizeWidth(boolean enable)
          Enable resize of the track width
abstract  com.google.gwt.user.client.ui.Widget getDraggableWidget()
          Get the draggable part of this widget
abstract  String getTrackTitle()
          Gets the track title
abstract  void setHeight(int pixelHeight)
           
 void setHeight(String height)
           
abstract  void setLoading(boolean loading)
          Start or stop the rotation of the loading button.
 void setSize(int pixelWidth, int pixelHeight)
           
 void setSize(String width, String height)
           
abstract  void setTrackContent(com.google.gwt.user.client.ui.Widget w)
          Set the track content widget
abstract  void setTrackTitle(String title)
          Set the track title
abstract  void setVisible(int buttonSet, boolean visible)
          Set the visibility of the specified button
abstract  void setWidth(int pixelWidth)
          Set the track frame width.
 void setWidth(String width)
           
abstract  void showAdjustHightButton(boolean show)
           
abstract  void showCloseButton(boolean show)
           
abstract  void showConfigButton(boolean show)
           
abstract  void showMinimizeButton(boolean show)
           
abstract  void showReloadButton(boolean show)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON_RELOAD

public static final int BUTTON_RELOAD
See Also:
Constant Field Values

BUTTON_CONFIG

public static final int BUTTON_CONFIG
See Also:
Constant Field Values

BUTTON_ADJUSTHEIGHT

public static final int BUTTON_ADJUSTHEIGHT
See Also:
Constant Field Values

BUTTON_MINIMIZE

public static final int BUTTON_MINIMIZE
See Also:
Constant Field Values

BUTTON_CLOSE

public static final int BUTTON_CLOSE
See Also:
Constant Field Values

BUTTON_ALL

public static final int BUTTON_ALL
See Also:
Constant Field Values
Constructor Detail

TrackFrame

public TrackFrame()
Method Detail

setVisible

public abstract void setVisible(int buttonSet,
                                boolean visible)
Set the visibility of the specified button

Parameters:
buttonSet - set of buttons (OR value of BUTTON_RELOAD, BUTTON_CONFIG, BUTTON_ADJUSTHEIGHT, BUTTON_MINIMIZE, BUTTON_CLOSE)
visible -

showCloseButton

public abstract void showCloseButton(boolean show)

showConfigButton

public abstract void showConfigButton(boolean show)

showMinimizeButton

public abstract void showMinimizeButton(boolean show)

showAdjustHightButton

public abstract void showAdjustHightButton(boolean show)

showReloadButton

public abstract void showReloadButton(boolean show)

setTrackTitle

public abstract void setTrackTitle(String title)
Set the track title

Parameters:
title -

getTrackTitle

public abstract String getTrackTitle()
Gets the track title

Returns:

addTrackButtonListener

public abstract void addTrackButtonListener(TrackButtonListener listener)

setLoading

public abstract void setLoading(boolean loading)
Start or stop the rotation of the loading button.

Parameters:
loading - true: start rotate, false: stop rotate

setTrackContent

public abstract void setTrackContent(com.google.gwt.user.client.ui.Widget w)
Set the track content widget

Parameters:
w -

getDraggableWidget

public abstract com.google.gwt.user.client.ui.Widget getDraggableWidget()
Get the draggable part of this widget

Returns:

enableResizeWidth

public abstract void enableResizeWidth(boolean enable)
Enable resize of the track width

Parameters:
enable -

enableResizeHeight

public abstract void enableResizeHeight(boolean enable)
Enable resize of the track height

Parameters:
enable -

setWidth

public abstract void setWidth(int pixelWidth)
Set the track frame width. Use this method instead of UIObject.setWidth(String).

Parameters:
pixelWidth -

setHeight

public abstract void setHeight(int pixelHeight)
Parameters:
pixelHeight -

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject

setSize

public void setSize(int pixelWidth,
                    int pixelHeight)

setSize

public void setSize(String width,
                    String height)
Overrides:
setSize in class com.google.gwt.user.client.ui.UIObject


Copyright © 2007-2012 utgenome.org. All Rights Reserved.