org.apache.commons.jelly.tags.swt
Class MenuTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.DynaTagSupport
          extended byorg.apache.commons.jelly.MapTagSupport
              extended byorg.apache.commons.jelly.tags.core.UseBeanTag
                  extended byorg.apache.commons.jelly.tags.swt.WidgetTag
                      extended byorg.apache.commons.jelly.tags.swt.MenuTag
All Implemented Interfaces:
org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag

public class MenuTag
extends WidgetTag

This tag creates an SWT Menu

Version:
1.1
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.tags.swt.WidgetTag
parent
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, shouldTrim
 
Constructor Summary
MenuTag()
           
MenuTag(int style)
           
 
Method Summary
protected  void attachWidgets(java.lang.Object parent, org.eclipse.swt.widgets.Widget widget)
          Provides a strategy method to allow a new child widget to be attached to its parent
protected  java.lang.Object createWidget(java.lang.Class theClass, org.eclipse.swt.widgets.Widget parent, int style)
          Factory method to create an instance of the given Widget class with the given parent and SWT style
 
Methods inherited from class org.apache.commons.jelly.tags.swt.WidgetTag
clearBean, doTag, getColor, getParentWidget, getStyle, getWidget, newInstance, setBeanProperties, setSize, toString
 
Methods inherited from class org.apache.commons.jelly.tags.core.UseBeanTag
addIgnoreProperty, convertToClass, getBean, getDefaultClass, getIgnorePropertySet, isIgnoreUnknownProperties, loadClass, processBean, setBean, setIgnoreUnknownProperties, validateBeanProperties
 
Methods inherited from class org.apache.commons.jelly.MapTagSupport
createAttributes, getAttributes, setAttribute
 
Methods inherited from class org.apache.commons.jelly.DynaTagSupport
getAttributeType
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent
 

Constructor Detail

MenuTag

public MenuTag()

MenuTag

public MenuTag(int style)
Method Detail

attachWidgets

protected void attachWidgets(java.lang.Object parent,
                             org.eclipse.swt.widgets.Widget widget)
Provides a strategy method to allow a new child widget to be attached to its parent

Overrides:
attachWidgets in class WidgetTag
Parameters:
parent - is the parent widget which is never null
widget - is the new child widget to be attached to the parent

createWidget

protected java.lang.Object createWidget(java.lang.Class theClass,
                                        org.eclipse.swt.widgets.Widget parent,
                                        int style)
                                 throws org.apache.commons.jelly.JellyTagException
Description copied from class: WidgetTag
Factory method to create an instance of the given Widget class with the given parent and SWT style

Overrides:
createWidget in class WidgetTag
Parameters:
theClass - is the type of widget to create
parent - is the parent widget
style - the SWT style code
Returns:
the new Widget
Throws:
org.apache.commons.jelly.JellyTagException
See Also:
WidgetTag.createWidget(java.lang.Class, org.eclipse.swt.widgets.Widget, int)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.