Difference between revisions of "TabDocumentExtension"

From OpenKM Documentation
Jump to: navigation, search
 
Line 2: Line 2:
 
=== getTabText ===
 
=== getTabText ===
 
Used by OpenKM to get the tab text.
 
Used by OpenKM to get the tab text.
 
=== getExtensionUUID() ===
 
Return unique extension id
 
  
 
== Example ==
 
== Example ==
Line 24: Line 21:
 
return tabText;
 
return tabText;
 
}
 
}
       
+
 
        @Override
 
        public String getExtensionUUID() {
 
                return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66");
 
        }
 
 
}
 
}
 
</source>
 
</source>
  
 
[[Category: Extension Guide]]
 
[[Category: Extension Guide]]

Latest revision as of 07: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;
	}

}