Record Class ColumnViewAdapter.ContextMenuArgs<T>
java.lang.Object
java.lang.Record
com.amalgamasimulation.desktop.ui.views.ColumnViewAdapter.ContextMenuArgs<T>
- Type Parameters:
T- the type of the table item- Record Components:
- the context menu to be displayeditem- the data item of the selected rowcolumn- the column where the context menu was invoked
- Enclosing class:
ColumnViewAdapter<T>
public static record ColumnViewAdapter.ContextMenuArgs<T>(org.eclipse.swt.widgets.Menu menu, T item, IColumn<T,?,?> column)
extends Record
Context menu event arguments for table operations.
-
Constructor Summary
ConstructorsConstructorDescriptionContextMenuArgs(org.eclipse.swt.widgets.Menu menu, T item, IColumn<T, ?, ?> column) Creates an instance of aContextMenuArgsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.intReturns the original column index.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.org.eclipse.swt.widgets.Menumenu()Returns the value of themenurecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
columnIndex
public int columnIndex()Returns the original column index. This index reflects the column's position in the original column order and is not affected by user column reordering.- Returns:
- the original column index
-
columnName
- Returns:
- the column name
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-