Class: Fox::FXFileItem
- Inherits:
-
FXIconItem
- Object
- FXObject
- FXIconItem
- Fox::FXFileItem
- Defined in:
- rdoc-sources/FXFileList.rb
Overview
File item
Instance Attribute Summary collapse
-
#assoc ⇒ Object
readonly
The file association object for this item FXFileAssoc.
-
#date ⇒ Object
readonly
Date for this item [Time].
-
#size ⇒ Object
readonly
The file size for this item [Integer].
Attributes inherited from FXIconItem
#bigIcon, #data, #draggable, #enabled, #miniIcon, #selected, #text
Instance Method Summary collapse
-
#blockdev? ⇒ Boolean
Return
true
if this is a block device item. -
#chardev? ⇒ Boolean
Return
true
if this is a character device item. -
#directory? ⇒ Boolean
Return
true
if this is a directory item. -
#executable? ⇒ Boolean
Return
true
if this is an executable item. -
#fifo? ⇒ Boolean
Return
true
if this is an FIFO item. -
#file? ⇒ Boolean
Return
true
if this is a file item. -
#initialize(text, bi = nil, mi = nil, ptr = nil) ⇒ FXFileItem
constructor
Returns an initialized FXFileItem instance.
-
#share? ⇒ Boolean
Return
true
if this is a share item. -
#socket? ⇒ Boolean
Return
true
if this is a socket. -
#symlink? ⇒ Boolean
Return
true
if this is a symbolic link item.
Methods inherited from FXIconItem
#<=>, #create, #destroy, #detach, #draggable?, #enabled?, #getHeight, #getWidth, #hasFocus?, #selected?, #setFocus, #to_s
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(text, bi = nil, mi = nil, ptr = nil) ⇒ FXFileItem
Returns an initialized FXFileItem instance
17 18 |
# File 'rdoc-sources/FXFileList.rb', line 17 def initialize(text, bi=nil, mi=nil, ptr=nil) # :yields: theFileItem end |
Instance Attribute Details
#assoc ⇒ Object (readonly)
The file association object for this item Fox::FXFileAssoc
8 9 10 |
# File 'rdoc-sources/FXFileList.rb', line 8 def assoc @assoc end |
#date ⇒ Object (readonly)
Date for this item [Time]
14 15 16 |
# File 'rdoc-sources/FXFileList.rb', line 14 def date @date end |
#size ⇒ Object (readonly)
The file size for this item [Integer]
11 12 13 |
# File 'rdoc-sources/FXFileList.rb', line 11 def size @size end |
Instance Method Details
#blockdev? ⇒ Boolean
Return true
if this is a block device item
39 |
# File 'rdoc-sources/FXFileList.rb', line 39 def blockdev?; end |
#chardev? ⇒ Boolean
Return true
if this is a character device item
36 |
# File 'rdoc-sources/FXFileList.rb', line 36 def chardev?; end |
#directory? ⇒ Boolean
Return true
if this is a directory item
24 |
# File 'rdoc-sources/FXFileList.rb', line 24 def directory?; end |
#executable? ⇒ Boolean
Return true
if this is an executable item
30 |
# File 'rdoc-sources/FXFileList.rb', line 30 def executable?; end |
#fifo? ⇒ Boolean
Return true
if this is an FIFO item
42 |
# File 'rdoc-sources/FXFileList.rb', line 42 def fifo?; end |
#file? ⇒ Boolean
Return true
if this is a file item
21 |
# File 'rdoc-sources/FXFileList.rb', line 21 def file?; end |
#share? ⇒ Boolean
Return true
if this is a share item
27 |
# File 'rdoc-sources/FXFileList.rb', line 27 def share?; end |
#socket? ⇒ Boolean
Return true
if this is a socket
45 |
# File 'rdoc-sources/FXFileList.rb', line 45 def socket?; end |
#symlink? ⇒ Boolean
Return true
if this is a symbolic link item
33 |
# File 'rdoc-sources/FXFileList.rb', line 33 def symlink?; end |