Difference between revisions of "TabFolderExtension"

From OpenKM Documentation
Jump to: navigation, search
(Created page with '== Methods == getTabText() set(GWTFolder folder) setVisibleButtons(boolean visible) == getTabText == Used by OpenKM to get the tab text. == set(GWTFolder folder) == Any ti…')
 
Line 3: Line 3:
 
  set(GWTFolder folder)
 
  set(GWTFolder folder)
 
  setVisibleButtons(boolean visible)
 
  setVisibleButtons(boolean visible)
 
+
String getExtensionUUID()
  
 
== getTabText ==
 
== getTabText ==
 
Used by OpenKM to get the tab text.
 
Used by OpenKM to get the tab text.
 
  
 
== set(GWTFolder folder) ==
 
== set(GWTFolder folder) ==
 
Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information.
 
Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information.
  
 +
== getExtensionUUID() ==
 +
Return the unique extension id
  
 
== Example ==
 
== Example ==
Line 40: Line 41:
 
public void setVisibleButtons(boolean visible) {
 
public void setVisibleButtons(boolean visible) {
 
// TODO Auto-generated method stub
 
// TODO Auto-generated method stub
 +
}
 +
 +
        @Override
 +
public String getExtensionUUID() {
 +
return String.valueOf("d95e01a0-d097-11df-bd3b-0800200c9a66");
 
}
 
}
 
}
 
}
 
</source>
 
</source>
 
[[Category: OpenKM plugin extensions]]
 
[[Category: OpenKM plugin extensions]]

Revision as of 16:54, 5 October 2010

Methods

getTabText()
set(GWTFolder folder)
setVisibleButtons(boolean visible)
String getExtensionUUID()

getTabText

Used by OpenKM to get the tab text.

set(GWTFolder folder)

Any time there's some folder selected ( in tree or browser ) is executed this method by OpenKM in order to refreshing folder tab panel information.

getExtensionUUID()

Return the unique extension id

Example

public class TabFolderExample extends TabFolderExtension {
	
	VerticalPanel vPanel;
	
	public TabFolderExample() {
		vPanel = new VerticalPanel();
		vPanel.add(new HTML("hello world"));
		
		initWidget(vPanel);
	}

	@Override
	public String getTabText() {
		return "New folder tab";
	}

	@Override
	public void set(GWTFolder doc) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setVisibleButtons(boolean visible) {
		// TODO Auto-generated method stub
	}

        @Override
	public String getExtensionUUID() {
		return String.valueOf("d95e01a0-d097-11df-bd3b-0800200c9a66");
	}
}