<af:componentDragSource>

componentDragSource component drag source


このタグは、包含するコンポーネントをドラッグ可能にします。af:componentDragSourceでは、MOVE処理のみサポートされることに注意してください。

例:

この例では、<af:outputText>をドラッグできます。

<source>
            <af:outputText value="Drag Me">
                <af:componentDragSource/>
            </af:outputText>

</source>

また、この例ではaf:panelGroupLayoutをコンポーネントのドロップ・ターゲットにすることが可能です。

<source>
            <af:panelGroupLayout>
              <af:dropTarget actions="MOVE dropListener="#{dropHandler.handleComponentMove}">
                <af:dataFlavor flavorClass="javax.faces.component.UIComponent"/>
              </af:dropTarget>
            </af:panelGroupLayout>
            

</source>