org.utgenome.gwt.utgb.client.track
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.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by org.utgenome.gwt.utgb.client.track.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.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

public class TrackFrame
extends com.google.gwt.user.client.ui.SimplePanel

TrackFrame wraps your Track, then decorates the track with window manipulation buttons, a track label, drag & drop facility, etc.

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
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
static int INFOPANEL_WIDTH
           
static int SCROLLBAR_WIDTH
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TrackFrame(Track track, int width)
           
TrackFrame(Track track, int width, int height)
           
 
Method Summary
 void adjustFrameHeight()
           
 void disableClose()
           
 void disableConfig()
           
 void disableHide()
           
 void disablePack()
           
 void disableResize()
           
 void enableConfig()
           
 void enableResize()
           
 void eraseMessage(boolean eraseLabel)
           
 int getContentHeight()
           
 com.google.gwt.user.client.ui.Label getFrameBar()
           
 com.google.gwt.user.client.ui.Label getMessageLabel()
           
 Track getTrack()
           
 boolean isPacked()
           
 void loadingDone()
           
 void minimize()
           
 void onUpdateTrackWidget()
           
 void open()
           
 void pack()
          Pack (fullly display: no scroll bar) the track content
 void resize(int height)
           
 void resizeTrackAreaWidth(int newWidth)
           
 void setFrameHeight(int height)
           
 void setFrameState(TrackFrameState frameState)
           
 void setNowLoading()
           
 void setPacked(boolean packed)
           
 void setVisibleMessageLabel(boolean visible)
           
 void switchMinimization()
           
 void switchPackUnpack()
           
 void unpack()
          Use scroll bar to display the track content
 void writeMessage(String message)
           
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCROLLBAR_WIDTH

public static final int SCROLLBAR_WIDTH
See Also:
Constant Field Values

INFOPANEL_WIDTH

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

TrackFrame

public TrackFrame(Track track,
                  int width,
                  int height)

TrackFrame

public TrackFrame(Track track,
                  int width)
Method Detail

setFrameHeight

public void setFrameHeight(int height)

getContentHeight

public int getContentHeight()

resize

public void resize(int height)

adjustFrameHeight

public void adjustFrameHeight()

onUpdateTrackWidget

public void onUpdateTrackWidget()

resizeTrackAreaWidth

public void resizeTrackAreaWidth(int newWidth)

open

public void open()

minimize

public void minimize()

switchMinimization

public void switchMinimization()

switchPackUnpack

public void switchPackUnpack()

pack

public void pack()
Pack (fullly display: no scroll bar) the track content


unpack

public void unpack()
Use scroll bar to display the track content


setPacked

public void setPacked(boolean packed)

enableConfig

public void enableConfig()

disableConfig

public void disableConfig()

isPacked

public boolean isPacked()

disablePack

public void disablePack()

disableResize

public void disableResize()

enableResize

public void enableResize()

disableClose

public void disableClose()

disableHide

public void disableHide()

getTrack

public Track getTrack()

getFrameBar

public com.google.gwt.user.client.ui.Label getFrameBar()

getMessageLabel

public com.google.gwt.user.client.ui.Label getMessageLabel()

setVisibleMessageLabel

public void setVisibleMessageLabel(boolean visible)

writeMessage

public void writeMessage(String message)

eraseMessage

public void eraseMessage(boolean eraseLabel)

setFrameState

public void setFrameState(TrackFrameState frameState)

setNowLoading

public void setNowLoading()

loadingDone

public void loadingDone()


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