Class EditorVSRow

    • Constructor Detail

      • EditorVSRow

        public EditorVSRow()
        Creates the VirtualSpace Row property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorVSRow

        public EditorVSRow​(Atom propertyAtom)
        Creates the VirtualSpace Row property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - The name of the component, unique within it's parent.
      • EditorVSRow

        public EditorVSRow​(Atom propertyAtom,
                           VSField[] fields)
                    throws PropException
        Creates the VirtualSpace Row property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - The name of the component, unique within it's parent.
        fields - The fields.
        Throws:
        PropException - For creation errors.
      • EditorVSRow

        public EditorVSRow​(Atom propertyAtom,
                           VSColumnHeader[] columns)
                    throws PropException
        Creates the VirtualSpace Row property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - The name of the component, unique within it's parent.
        columns - The columns.
        Throws:
        PropException - For creation errors.
    • Method Detail

      • createField

        public EditorVSField createField()
        Creates a new field with a unique name that then can be added to this row.
        Overrides:
        createField in class VSRow
        Returns:
        A new field, initialized with a value or not depending on if the value is null.
      • getTable

        public EditorVSTable getTable()
        Gets the table of the row.
        Overrides:
        getTable in class VSRow
        Returns:
        The VirtualSpace Table instance, or null if row is not added to a table.
      • getColumnHeader

        public EditorVSColumnHeader getColumnHeader​(int columnIndex)
        Gets the headers columns for the row.
        Overrides:
        getColumnHeader in class VSRow
        Parameters:
        columnIndex - The index of the column.
        Returns:
        The column of requested index, null if it's not a header row (i.e. VSRow.isColumnHeader() returns false), or the column index is out of range.
      • getField

        public EditorVSField getField​(int columnIndex)
        Gets the field at specified column index.
        Overrides:
        getField in class VSRow
        Parameters:
        columnIndex - The column index.
        Returns:
        The field found, or null for none.
      • getPossibleChildren

        public java.lang.Class<?>[] getPossibleChildren()
        Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
        Specified by:
        getPossibleChildren in interface IPropCnr
        Overrides:
        getPossibleChildren in class PropCnr
        Returns:
        An array containing the classes of possible children, or null for no support.