WAInspector


Seaside-Components-Tools

Comment:



Hierarchy:

ProtoObject
Object
WAPresenter
WAComponent
WAInspector

Summary:

instance variables:

path

methods:

instance class
as yet unclassified state variables as yet unclassified

Detail:

instance variables:

path

instance methods:

as yet unclassified
canInspect: anObject

	^ anObject isNumber or: [(Array with: nil with: true with: false) includes: anObject]
children

	^ Array with: path
chooseObject: anObject named: aString

	path pushSegment: anObject name: aString
initialize

	path _ WAPath new
renderContentOn: html
 
	html render: path.
	html heading: (self object printStringLimitedTo: 50).
	html text: 'Identity Hash: ', self object identityHash asString; break; break.
	self renderMembersOn: html.
renderMembersOn: html
 
	| members |
	members := self object inspectorFields.
	members isEmpty ifTrue: [^self].
	html bold: 'Members: '.
	html attributeAt: 'border' put: 1.
	html table: 
			[members associationsDo: 
					[:assoc | 
					self 
						renderRowForObject: assoc value
						named: assoc key
						on: html]]
renderRowForObject: anObject named: aString on: html

	html tableRow: [
		html tableData: [ 
			(self canInspect: anObject)
				ifTrue: [html text: aString]
				ifFalse: [html anchorWithAction: [self chooseObject: anObject named: aString] text: aString ]
		].
		html tableData: [ html text: (anObject printStringLimitedTo: 100) ]
	]
	

state variables
object

	^ path currentSegment
object: anObject
 
	path pushSegment: anObject name: anObject printString

class methods:

as yet unclassified
on: anObject

	^ self new object: anObject

^top


- made by Dandelion -