TabFolderExtension

From OpenKM Documentation
Revision as of 16:51, 3 June 2010 by Jllort (talk | contribs) (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…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Methods

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


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.


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
	}
}