Archive

Archive for November 21, 2011

Marama Code 124 ~ Hide Your Custome Event Handler

November 21, 2011 Leave a comment

While reading marama WriteEventHandler codes, I found this method that helps to hide the event handlers until a specific icon is selected. Just beware that this method is only applicable for event handlers that were created in working workspace.

public boolean isRunnable() {
  final MaramaShape s = this.getSelectedShape();
    if (s == null) { return false; }

    if (isEventHandlerShapeType(s.getShapeType())) { return true; }
   else { return false; }
}

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.