|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.esri.map.popup.PopupView
public class PopupView
This class can be used for the following:
PopupInfo
from web maps and other sourcesJMap.createPopup(javax.swing.JComponent[], Graphic, boolean)
to show PopupInfo
for a graphic selected in a map control.
Nested Class Summary | |
---|---|
class |
PopupView.AttachmentInfoCallback
This class is used to handle the response to attachment queries to a feature layer. |
class |
PopupView.AttachmentsListCellRenderer
This class implements a list cell renderer for the attachments list. |
static interface |
PopupView.ZoomToGraphicCallback
|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PopupView(boolean isForEditing)
Create a PopupView instance. |
Method Summary | |
---|---|
void |
addPopupViewListener(PopupViewListener listener)
Adds the popup view listener. |
static PopupView |
createAttributesView(String title,
Field[] fields)
Create an instance of the PopupView that displays a simple list of attributes and values. |
static PopupView |
createAttributesView(String itemTitle,
Graphic graphic)
Create an instance of the PopupView that displays a simple list of attributes and values. |
static PopupView |
createEditView(String title,
ArcGISFeatureLayer featureLayer)
Create an instance of the PopupView that can be used to edit the attributes of features in the given layer. |
static PopupView |
createEditView(String title,
ArcGISFeatureLayer featureLayer,
Map<String,com.esri.core.map.popup.PopupFieldInfo> fieldInfos)
Create an instance of the PopupView that can be used to edit the attributes of features in the given layer. |
protected void |
fireOnCancelEditEvent()
Fire cancel edit event. |
protected void |
fireOnCommitEditEvent()
Fire commit edit event. |
protected CallbackListener<FeatureEditResult[][]> |
getEditCallback()
Gets the edit callback. |
protected void |
handleZoomToGraphicEvent()
Handle zoom to graphic event. |
void |
removePopupViewListener(PopupViewListener listener)
Removes the popup view listener. |
void |
setEditCallbackListener(CallbackListener<FeatureEditResult[][]> callback)
Setting an edit callback listener allows the calling code to handle the response to submitting edits to the associated feature class. |
void |
setGraphic(GraphicsLayer graphicsLayer,
Graphic graphic)
Sets the graphic that is to be displayed or edited. |
void |
setPopupInfo(ArcGISPopupInfo popupInfo)
Sets the popup info. |
protected void |
setupAttachmentsListData()
Setup attachments list data. |
void |
setZoomToGraphicCallback(PopupView.ZoomToGraphicCallback callback)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PopupView(boolean isForEditing)
PopupView
instance. If this instance is intended to be used
for editing attriubtes, set isForEditing
true. In editing mode, the
PopupView will show a list of attribute name/value pairs and allow the editing
of the values. If the instance is not set to editing mode, any attachments and
media associated with a given feature will be displayed. If a description field
has been set for the PopupView, this will be displayed. If there is no description
field set, a list of attribute name/value pairs will be displayed instead.
isForEditing
- set true for editing mode, false otherwise.Method Detail |
---|
public static PopupView createAttributesView(String title, Field[] fields)
Field
s.
title
- Title to set on the popup. Field names within '{}' will be replaced with the corresponding valuesfields
- the fields
public static PopupView createAttributesView(String itemTitle, Graphic graphic)
itemTitle
- Title to set on the popup. Field names within '{}' will be replaced with the corresponding valuesgraphic
- used to determine the fields to show in the popup
public static PopupView createEditView(String title, ArcGISFeatureLayer featureLayer)
title
- Title to set on the popup. Field names within '{}' will be replaced with the corresponding valuesfeatureLayer
- the feature layer that will be edited
public static PopupView createEditView(String title, ArcGISFeatureLayer featureLayer, Map<String,com.esri.core.map.popup.PopupFieldInfo> fieldInfos)
PopupFieldInfo
instances.
The FieldName property of each PopupFieldInfo
should match the name
of a field in the given feature layer.
title
- Title to set on the popup. Field names within '{}' will be replaced with the corresponding valuesfeatureLayer
- the feature layer that will be editedfieldInfos
- array of PopupFieldInfo
instances describing the attributes
being edited.
PopupFieldInfo
public void setPopupInfo(ArcGISPopupInfo popupInfo)
PopupView
instance.
popupInfo
- the new popup infoPopupInfo
public void setGraphic(GraphicsLayer graphicsLayer, Graphic graphic)
graphicsLayer
- the graphics layergraphic
- the graphicpublic void addPopupViewListener(PopupViewListener listener)
listener
- the listenerpublic void removePopupViewListener(PopupViewListener listener)
listener
- the listenerpublic void setEditCallbackListener(CallbackListener<FeatureEditResult[][]> callback)
callback
- the new edits the callback listenerpublic void setZoomToGraphicCallback(PopupView.ZoomToGraphicCallback callback)
protected CallbackListener<FeatureEditResult[][]> getEditCallback()
protected void setupAttachmentsListData()
protected void handleZoomToGraphicEvent()
protected void fireOnCancelEditEvent()
protected void fireOnCommitEditEvent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |