Java Code Examples for com.vaadin.shared.ui.dd.VerticalDropLocation#valueOf()

The following examples show how to use com.vaadin.shared.ui.dd.VerticalDropLocation#valueOf() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AccordionTargetDetails.java    From cuba with Apache License 2.0 5 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getDropLocation() {
    if (getData("vdetail") != null) {
        return VerticalDropLocation.valueOf((String) getData("vdetail"));
    } else {
        return null;
    }
}
 
Example 2
Source File: DDVerticalLayout.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getDropLocation() {
    return VerticalDropLocation.valueOf((String) getData(
            Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION));
}
 
Example 3
Source File: DDCssLayout.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getVerticalDropLocation() {
    return VerticalDropLocation.valueOf((String) getData(
            Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION));
}
 
Example 4
Source File: DDFormLayout.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getDropLocation() {
    return VerticalDropLocation.valueOf((String) getData(
            Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION));
}
 
Example 5
Source File: DDVerticalSplitPanel.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getDropLocation() {
    return VerticalDropLocation.valueOf((String) getData(
            Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION));
}
 
Example 6
Source File: DDGridLayout.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the vertical location within the cell the component was
 * dropped
 * 
 * @return
 */
public VerticalDropLocation getVerticalDropLocation() {
    return VerticalDropLocation.valueOf(
            getData(Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION)
                    .toString());
}
 
Example 7
Source File: DDVerticalLayout.java    From cuba with Apache License 2.0 2 votes vote down vote up
/**
 * Get the horizontal position of the dropped component within the
 * underlying cell.
 * 
 * @return The drop location
 */
public VerticalDropLocation getDropLocation() {
    return VerticalDropLocation.valueOf((String) getData(
            Constants.DROP_DETAIL_VERTICAL_DROP_LOCATION));
}