Reference
AliasFile
, ApplicationFile
, Clipping
, ComputerObject
, Container
, DesktopObject
, Disk
, DocumentFile
, File
, Folder
, InternetLocationFile
, Package
, TrashObject
@Plural("items") @Code("cobj") @Name("item") public interface Item extends Reference
Modifier and Type | Method | Description |
---|---|---|
Rectangle |
getBounds() |
The bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons).
|
String |
getComment() |
The comment of the item, displayed in the “Get Info” window.
|
Reference |
getContainer() |
The container of the item.
|
Date |
getCreationDate() |
The date on which the item was created.
|
String |
getDescription() |
A description of the item.
|
Point |
getDesktopPosition() |
The position of the item on the desktop.
|
Reference |
getDisk() |
The disk on which the item is stored.
|
String |
getDisplayedName() |
The user-visible name of the item.
|
Priv |
getEveryonesPrivileges() |
|
String |
getGroup() |
The user or group that has special access to the container.
|
Priv |
getGroupPrivileges() |
|
IconFamily |
getIcon() |
The icon bitmap of the item.
|
int |
getIndex() |
The index in the front-to-back ordering within its container.
|
Reference |
getInformationWindow() |
The information window for the item.
|
String |
getKind() |
The kind of the item.
|
TypeClass |
getKlass() |
The class of the item.
|
int |
getLabelIndex() |
The label of the item.
|
Date |
getModificationDate() |
The date on which the item was last modified.
|
String |
getName() |
The name of the item.
|
String |
getNameExtension() |
The name extension of the item (such as “txt”).
|
String |
getOwner() |
The user that owns the container.
|
Priv |
getOwnerPrivileges() |
|
long |
getPhysicalSize() |
The actual space used by the item on disk.
|
Point |
getPosition() |
The position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons).
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
long |
getSize() |
The logical size of the item.
|
String |
getUrl() |
The URL of the item.
|
boolean |
isExtensionHidden() |
Is the item's extension hidden from the user?
|
boolean |
isLocked() |
Is the file locked?
|
void |
setBounds(Rectangle bounds) |
The bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons).
|
void |
setComment(String comment) |
The comment of the item, displayed in the “Get Info” window.
|
void |
setDesktopPosition(Point desktopPosition) |
The position of the item on the desktop.
|
void |
setEveryonesPrivileges(Priv everyonesPrivileges) |
|
void |
setExtensionHidden(boolean extensionHidden) |
Is the item's extension hidden from the user?
|
void |
setGroup(String group) |
The user or group that has special access to the container.
|
void |
setGroupPrivileges(Priv groupPrivileges) |
|
void |
setIcon(IconFamily icon) |
The icon bitmap of the item.
|
void |
setLabelIndex(int labelIndex) |
The label of the item.
|
void |
setLocked(boolean locked) |
Is the file locked?
|
void |
setModificationDate(Date modificationDate) |
The date on which the item was last modified.
|
void |
setName(String name) |
The name of the item.
|
void |
setNameExtension(String nameExtension) |
The name extension of the item (such as “txt”).
|
void |
setOwner(String owner) |
The user that owns the container.
|
void |
setOwnerPrivileges(Priv ownerPrivileges) |
|
void |
setPosition(Point position) |
The position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons).
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pnam") @Kind("property") @Name("name") @Type("text") void setName(String name)
name
- new property value@Code("dnam") @Kind("property") @Name("displayed name") @Type("text") String getDisplayedName()
@Code("nmxt") @Kind("property") @Name("name extension") @Type("text") String getNameExtension()
@Code("nmxt") @Kind("property") @Name("name extension") @Type("text") void setNameExtension(String nameExtension)
nameExtension
- new property value@Code("hidx") @Kind("property") @Name("extension hidden") @Type("boolean") boolean isExtensionHidden()
@Code("hidx") @Kind("property") @Name("extension hidden") @Type("boolean") void setExtensionHidden(boolean extensionHidden)
extensionHidden
- new property value@Code("pidx") @Kind("property") @Name("index") @Type("integer") int getIndex()
@Code("ctnr") @Kind("property") @Name("container") @Type("specifier") Reference getContainer()
@Code("cdis") @Kind("property") @Name("disk") @Type("specifier") Reference getDisk()
@Code("posn") @Kind("property") @Name("position") @Type("point") Point getPosition()
@Code("posn") @Kind("property") @Name("position") @Type("point") void setPosition(Point position)
position
- new property value@Code("dpos") @Kind("property") @Name("desktop position") @Type("point") Point getDesktopPosition()
@Code("dpos") @Kind("property") @Name("desktop position") @Type("point") void setDesktopPosition(Point desktopPosition)
desktopPosition
- new property value@Code("pbnd") @Kind("property") @Name("bounds") @Type("rectangle") Rectangle getBounds()
@Code("pbnd") @Kind("property") @Name("bounds") @Type("rectangle") void setBounds(Rectangle bounds)
bounds
- new property value@Code("labi") @Kind("property") @Name("label index") @Type("integer") int getLabelIndex()
@Code("labi") @Kind("property") @Name("label index") @Type("integer") void setLabelIndex(int labelIndex)
labelIndex
- new property value@Code("aslk") @Kind("property") @Name("locked") @Type("boolean") boolean isLocked()
@Code("aslk") @Kind("property") @Name("locked") @Type("boolean") void setLocked(boolean locked)
locked
- new property value@Code("kind") @Kind("property") @Name("kind") @Type("text") String getKind()
@Code("dscr") @Kind("property") @Name("description") @Type("text") String getDescription()
@Code("comt") @Kind("property") @Name("comment") @Type("text") String getComment()
@Code("comt") @Kind("property") @Name("comment") @Type("text") void setComment(String comment)
comment
- new property value@Code("ptsz") @Kind("property") @Name("size") @Type("double integer") long getSize()
@Code("phys") @Kind("property") @Name("physical size") @Type("double integer") long getPhysicalSize()
@Code("ascd") @Kind("property") @Name("creation date") @Type("date") Date getCreationDate()
@Code("asmo") @Kind("property") @Name("modification date") @Type("date") Date getModificationDate()
@Code("asmo") @Kind("property") @Name("modification date") @Type("date") void setModificationDate(Date modificationDate)
modificationDate
- new property value@Code("iimg") @Kind("property") @Name("icon") @Type("icon family") IconFamily getIcon()
@Code("iimg") @Kind("property") @Name("icon") @Type("icon family") void setIcon(IconFamily icon)
icon
- new property value@Code("pURL") @Kind("property") @Name("URL") @Type("text") String getUrl()
@Code("sown") @Kind("property") @Name("owner") @Type("text") String getOwner()
@Code("sown") @Kind("property") @Name("owner") @Type("text") void setOwner(String owner)
owner
- new property value@Code("sgrp") @Kind("property") @Name("group") @Type("text") String getGroup()
@Code("sgrp") @Kind("property") @Name("group") @Type("text") void setGroup(String group)
group
- new property value@Code("ownr") @Kind("property") @Name("owner privileges") @Type("priv") Priv getOwnerPrivileges()
@Code("ownr") @Kind("property") @Name("owner privileges") @Type("priv") void setOwnerPrivileges(Priv ownerPrivileges)
ownerPrivileges
- new property value@Code("gppr") @Kind("property") @Name("group privileges") @Type("priv") Priv getGroupPrivileges()
@Code("gppr") @Kind("property") @Name("group privileges") @Type("priv") void setGroupPrivileges(Priv groupPrivileges)
groupPrivileges
- new property value@Code("gstp") @Kind("property") @Name("everyones privileges") @Type("priv") Priv getEveryonesPrivileges()
@Code("gstp") @Kind("property") @Name("everyones privileges") @Type("priv") void setEveryonesPrivileges(Priv everyonesPrivileges)
everyonesPrivileges
- new property value@Code("iwnd") @Kind("property") @Name("information window") @Type("specifier") Reference getInformationWindow()
@Code("pcls") @Kind("property") @Name("class") @Type("type") TypeClass getKlass()