FolderHandlerExtension
From OpenKM Documentation
Revision as of 16:54, 3 June 2010 by Jllort (talk | contribs) (Created page with 'Any extension that implements FolderHandlerExtension will be watching all events fired from folder tab == Method == onChange(FolderEventConstant event) == onChange(FolderEven…')
Any extension that implements FolderHandlerExtension will be watching all events fired from folder tab
Method
onChange(FolderEventConstant event)
onChange(FolderEventConstant event)
Each time it'll be some new folder event the method onChange it'll be fired by OpenKM
Example
public class TabFolderExample extends TabFolderExtension implements FolderHandlerExtension {
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 void onChange(FolderEventConstant event) {
if (event.equals(HasFolderEvent.TAB_CHANGED)) {
Window.alert("tab changed - " + event.getType());
}
}
}