com.atlassian.confluence.plugins.linkbrowser.client.display
Class WebLinkDisplay

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 com.atlassian.confluence.plugins.linkbrowser.client.display.WebLinkDisplay
All Implemented Interfaces:
LinkBrowserPanelDisplay, WebLinkPresenter.Display, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener

public class WebLinkDisplay
extends com.google.gwt.user.client.ui.Composite
implements WebLinkPresenter.Display


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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
WebLinkDisplay(com.google.gwt.i18n.client.Dictionary dictionary)
           
 
Method Summary
 com.google.gwt.user.client.ui.Widget asWidget()
           
 HasAction getAliasField()
           
 String getLinkAlias()
          Returns the current link text in the link text field.
 String getLinkDestination()
           
 com.google.gwt.event.dom.client.HasKeyUpHandlers getLinkInput()
           
 com.google.gwt.event.dom.client.HasBlurHandlers getLinkInputForBlur()
           
 com.google.gwt.event.dom.client.HasFocusHandlers getLinkInputForFocus()
           
 void resetDefaultTextInLinkInput()
          Resets the text in the destination input field to the default.
 void selectTextInLinkInput()
          Selects the text in the destination input field.
 void setDestination(String destination)
          Sets the destination text in the display
 void setInitialFocus()
          Places focus on the link text field.
 void setLinkAlias(String alias)
          Sets the default text for the link in the link text field.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, 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, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebLinkDisplay

public WebLinkDisplay(com.google.gwt.i18n.client.Dictionary dictionary)
Method Detail

getLinkAlias

public String getLinkAlias()
Description copied from interface: LinkBrowserPanelDisplay
Returns the current link text in the link text field.

Specified by:
getLinkAlias in interface LinkBrowserPanelDisplay

setLinkAlias

public void setLinkAlias(String alias)
Description copied from interface: LinkBrowserPanelDisplay
Sets the default text for the link in the link text field.

Specified by:
setLinkAlias in interface LinkBrowserPanelDisplay

getLinkDestination

public String getLinkDestination()
Specified by:
getLinkDestination in interface WebLinkPresenter.Display
Returns:
the current link destination text in the destination field.

asWidget

public com.google.gwt.user.client.ui.Widget asWidget()
Specified by:
asWidget in interface LinkBrowserPanelDisplay
Returns:
the display as a widget

getLinkInput

public com.google.gwt.event.dom.client.HasKeyUpHandlers getLinkInput()
Specified by:
getLinkInput in interface WebLinkPresenter.Display
Returns:
the link destination input field.

getLinkInputForFocus

public com.google.gwt.event.dom.client.HasFocusHandlers getLinkInputForFocus()
Specified by:
getLinkInputForFocus in interface WebLinkPresenter.Display
Returns:
the link destination input field

getLinkInputForBlur

public com.google.gwt.event.dom.client.HasBlurHandlers getLinkInputForBlur()
Specified by:
getLinkInputForBlur in interface WebLinkPresenter.Display
Returns:
the link destination input field

selectTextInLinkInput

public void selectTextInLinkInput()
Description copied from interface: WebLinkPresenter.Display
Selects the text in the destination input field.

Specified by:
selectTextInLinkInput in interface WebLinkPresenter.Display

resetDefaultTextInLinkInput

public void resetDefaultTextInLinkInput()
Description copied from interface: WebLinkPresenter.Display
Resets the text in the destination input field to the default.

Specified by:
resetDefaultTextInLinkInput in interface WebLinkPresenter.Display

setDestination

public void setDestination(String destination)
Description copied from interface: WebLinkPresenter.Display
Sets the destination text in the display

Specified by:
setDestination in interface WebLinkPresenter.Display

setInitialFocus

public void setInitialFocus()
Description copied from interface: WebLinkPresenter.Display
Places focus on the link text field.

Specified by:
setInitialFocus in interface WebLinkPresenter.Display

getAliasField

public HasAction getAliasField()
Specified by:
getAliasField in interface LinkBrowserPanelDisplay
Returns:
the alias field


Copyright © 2003-2011 Atlassian. All Rights Reserved.