FileDocCategorySizeDatePackage
AbstractIView.javaAPI DocAzureus 3.0.3.43746Thu Feb 09 19:42:56 GMT 2006org.gudy.azureus2.ui.swt.views

AbstractIView

public abstract class AbstractIView extends Object implements IView
author
René

Fields Summary
protected org.gudy.azureus2.core3.util.AEMonitor
this_mon
Constructors Summary
Methods Summary
public voiddataSourceChanged(java.lang.Object newDataSource)

  
public voiddelete()
A basic implementation that disposes the composite Should be called with super.delete() from any extending class. Images, Colors and such SWT handles must be disposed by the class itself.

    Composite comp = getComposite();
    if (comp != null && !comp.isDisposed())
      comp.dispose();
  
public voidgenerateDiagnostics(org.gudy.azureus2.core3.util.IndentWriter writer)

	  writer.println( "Diagnostics for " + this + " (" + getFullTitle()+ ")");
  
public org.eclipse.swt.widgets.CompositegetComposite()

 return null; 
public java.lang.StringgetData()

 return null; 
public java.lang.StringgetFullTitle()
Called in order to set / update the title of this View. When the view is being displayed in a tab, the full title is used for the tooltip. By default, this function will return text from the message bundles which correspond to the key returned in #getData()

return
the full title for the view

	  String	key = getData();
	  
	 if ( MessageText.keyExists( key )){
		 
		 return MessageText.getString(getData());
	 }
	 
	 return( key.replace( '.", ' " ));	// support old plugins
  
public final java.lang.StringgetShortTitle()
Called in order to set / update the short title of this view. When the view is being displayed in a tab, the short title is used for the tab's text. By default, this function will return the full title. If the full title is over 30 characters, it will be trimmed and "..." will be added

return
A short title for the view

    String shortTitle = getFullTitle();
    if(shortTitle != null && shortTitle.length() > 30) {
      shortTitle = shortTitle.substring(0,30) + "...";
    }
    return shortTitle;
	
public voidinitialize(org.eclipse.swt.widgets.Composite composite)


         
  
public booleanisEnabled(java.lang.String itemKey)

    return false;
  
public booleanisSelected(java.lang.String itemKey)

    return false;
  
public voiditemActivated(java.lang.String itemKey)

   
  
public voidrefresh()

public voidupdateLanguage()

    Messages.updateLanguageForControl(getComposite());