Difference between revisions of "TabDocumentExtension"

From OpenKM Documentation
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Methods ==
 
== Methods ==
getTabText()
+
=== getTabText ===
 
 
 
 
== getTabText ==
 
 
Used by OpenKM to get the tab text.
 
Used by OpenKM to get the tab text.
 
  
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
 
public class TabDocumentExample extends TabDocumentExtension {
 
public class TabDocumentExample extends TabDocumentExtension {
 
 
VerticalPanel vPanel;
 
VerticalPanel vPanel;
 
         String tabText = "Tab example";
 
         String tabText = "Tab example";
Line 26: Line 21:
 
return tabText;
 
return tabText;
 
}
 
}
 +
 
}
 
}
 
</source>
 
</source>
  
[[Category: OpenKM plugin extensions]]
+
[[Category: Extension Guide]]

Latest revision as of 08:29, 24 September 2012

Methods

getTabText

Used by OpenKM to get the tab text.

Example

public class TabDocumentExample extends TabDocumentExtension {
	VerticalPanel vPanel;
        String tabText = "Tab example";
	
	public TabDocumentExample() {
		HTML html = new HTML("Content tab example");
		vPanel = new VerticalPanel();
		vPanel.add(html);
		
		initWidget(vPanel);
	}

	@Override
	public String getTabText() {
		return tabText;
	}

}