// ========================================================================= //
// HELP LOGIC //
// ========================================================================= //
private void setupHelp() {
final FileIcon f = mainPanel.draggablePanel.createFakeIcon();
IntroJS.mark("Click here to upload a file.", mainPanel.uploadButton);
IntroJS.mark("These are your uploaded files.", "top", mainPanel.draggablePanel);
IntroJS.mark("Click here to download.","top", f.download);
IntroJS.mark("Click here to view file details.","top", f.info);
IntroJS.mark("Click here to delete.", "top", f.delete);
IntroJS.mark("Drag files here to delete them.", "top", mainPanel.trashButton);
IntroJS.mark("Drag files here to download them.", "top", mainPanel.downloadButton);
IntroJS.mark("You can send chat messages to other users here.", "top", mainPanel.chatPanel);
IntroJS.setOnChange(new IntroJS.ChangeCallback() {
@Override
public void onChange(Widget w, int step) {
switch(step) {
case 3:
Native.click(f.getElement());
break;
default:
// Do nothing
}
}
});
IntroJS.setOnExit(new IntroJS.ExitCallback() {
@Override
public void onExit() {
IntroJS.clearAll();
f.delete(true);
}
});
IntroJS.startIntro();
}